Cody

# Problem 44385. Extra safe primes

Solution 2067491

Submitted on 23 Dec 2019 by Chua Chin Yie
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 = 0; assert(isequal(isextrasafe(x),false))

tf = logical 0

2   Pass
x = 5; assert(isequal(isextrasafe(x),false))

tf = logical 0

3   Pass
x = 7; assert(isequal(isextrasafe(x),false))

tf = logical 0

4   Pass
x = 11; assert(isequal(isextrasafe(x),true))

tf = logical 1

5   Pass
x = 15; assert(isequal(isextrasafe(x),false))

tf = logical 0

6   Pass
x = 23; assert(isequal(isextrasafe(x),true))

tf = logical 1

7   Pass
x = 71; assert(isequal(isextrasafe(x),false))

tf = logical 0

8   Pass
x = 719; assert(isequal(isextrasafe(x),true))

tf = logical 1

9   Pass
x = 2039; assert(isequal(isextrasafe(x),true))

tf = logical 1

10   Pass
x = 2040; assert(isequal(isextrasafe(x),false))

tf = logical 0

11   Pass
x = 5807; assert(isequal(isextrasafe(x),true))

tf = logical 1

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
{"ft_lang_label":"__label__en","ft_lang_prob":0.58282447,"math_prob":0.9973427,"size":1117,"snap":"2020-45-2020-50","text_gpt3_token_len":380,"char_repetition_ratio":0.20754717,"word_repetition_ratio":0.12716763,"special_character_ratio":0.3572068,"punctuation_ratio":0.11792453,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9965181,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-04T05:48:43Z\",\"WARC-Record-ID\":\"<urn:uuid:ccf324e8-0099-4f60-a1bf-95e47755f989>\",\"Content-Length\":\"84606\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b511b6b1-e9dd-494b-a209-90aca453ae3c>\",\"WARC-Concurrent-To\":\"<urn:uuid:d64f2cae-99eb-4171-8aee-3c6ec47174d8>\",\"WARC-IP-Address\":\"23.223.252.57\",\"WARC-Target-URI\":\"https://jp.mathworks.com/matlabcentral/cody/problems/44385-extra-safe-primes/solutions/2067491\",\"WARC-Payload-Digest\":\"sha1:ZPFARX4VROG4T53XACX7OSGDEOOK5MXS\",\"WARC-Block-Digest\":\"sha1:M5FMCKD6BVXCMSOM7EMB5WP3NE675XD5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141733122.72_warc_CC-MAIN-20201204040803-20201204070803-00293.warc.gz\"}"}