Cody

# Problem 42760. Find the gcm of n given values

Solution 1032208

Submitted on 26 Oct 2016 by Massimo Zanetti
• Size: 22
• This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = [1 10 13 50 26]; y_correct = 13; assert(isequal(greatest_gcm(x),y_correct))

ans = 13

2   Pass
x = [1 1 1 2 5]; y_correct = 1; assert(isequal(greatest_gcm(x),y_correct))

ans = 1

3   Pass
x =[25 50 1 5 1 2 4 5]; y_correct = 25; assert(isequal(greatest_gcm(x),y_correct))

ans = 25
{"ft_lang_label":"__label__en","ft_lang_prob":0.6323527,"math_prob":0.99584985,"size":658,"snap":"2019-43-2019-47","text_gpt3_token_len":214,"char_repetition_ratio":0.13302752,"word_repetition_ratio":0.0,"special_character_ratio":0.35714287,"punctuation_ratio":0.092307694,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9862369,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-12T23:36:21Z\",\"WARC-Record-ID\":\"<urn:uuid:73925add-96dc-49d9-893c-27682cd84eb9>\",\"Content-Length\":\"70142\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:40d2200c-6b10-47c2-80a6-ae5ea6e4d4a6>\",\"WARC-Concurrent-To\":\"<urn:uuid:1e0932a8-f1fc-41d7-955e-02b2c497a142>\",\"WARC-IP-Address\":\"184.25.198.13\",\"WARC-Target-URI\":\"https://ch.mathworks.com/matlabcentral/cody/problems/42760-find-the-gcm-of-n-given-values/solutions/1032208\",\"WARC-Payload-Digest\":\"sha1:EAXWOV4I5IWVGM72I7MX4LKOZ633DVLS\",\"WARC-Block-Digest\":\"sha1:H57F7GOAYRDN2SGGRIAHXSXQ3OVYE4JY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496665809.73_warc_CC-MAIN-20191112230002-20191113014002-00508.warc.gz\"}"}