Cody

# Problem 14. Find the numeric mean of the prime numbers in a matrix.

Solution 906283

Submitted on 10 Jun 2016 by Thara Jose
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 = 3; y_correct = 3; assert(isequal(meanOfPrimes(x),y_correct))

2   Pass
x = [1 2 3]; y_correct = 2.5; assert(isequal(meanOfPrimes(x),y_correct))

3   Pass
x = [3 3; 3 3]; y_correct = 3; assert(isequal(meanOfPrimes(x),y_correct))

4   Pass
x = [7 3 8 8]'; y_correct = 5; assert(isequal(meanOfPrimes(x),y_correct))
{"ft_lang_label":"__label__en","ft_lang_prob":0.5058475,"math_prob":0.99838424,"size":670,"snap":"2019-43-2019-47","text_gpt3_token_len":215,"char_repetition_ratio":0.15615615,"word_repetition_ratio":0.020618556,"special_character_ratio":0.32537314,"punctuation_ratio":0.128,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99690425,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-12T08:18:35Z\",\"WARC-Record-ID\":\"<urn:uuid:fe6dd7d2-c000-4725-b779-893fc45f73bf>\",\"Content-Length\":\"72405\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:38295c0d-5709-488e-b176-83362904b384>\",\"WARC-Concurrent-To\":\"<urn:uuid:f06f2868-e9ea-43a6-8b37-4f8d1d10cd13>\",\"WARC-IP-Address\":\"23.50.112.17\",\"WARC-Target-URI\":\"https://fr.mathworks.com/matlabcentral/cody/problems/14-find-the-numeric-mean-of-the-prime-numbers-in-a-matrix/solutions/906283\",\"WARC-Payload-Digest\":\"sha1:ZQA7BUY4NJN5KXPDC3QKNK5WBQCLE3WE\",\"WARC-Block-Digest\":\"sha1:IQWEQKXZK6YACPWYXRMUTKMMP2SVYKGN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496664808.68_warc_CC-MAIN-20191112074214-20191112102214-00022.warc.gz\"}"}