Cody

# Problem 1095. Circular Primes (based on Project Euler, problem 35)

Solution 1880256

Submitted on 21 Jul 2019
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   Fail
[y numbers]=circular_prime(197) assert(isequal(y,16)&&isequal(numbers,[2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 197]))

s = 2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 197

Output argument "how_many" (and maybe others) not assigned during call to "circular_prime". Error in Test1 (line 1) [y numbers]=circular_prime(197)

2   Fail
[y numbers]=circular_prime(100) assert(isequal(y,13)&&isequal(numbers,[2 3 5 7 11 13 17 31 37 71 73 79 97]))

s = 2 3 5 7 11 13 17 31 37 71 73 79 97

Output argument "how_many" (and maybe others) not assigned during call to "circular_prime". Error in Test2 (line 1) [y numbers]=circular_prime(100)

3   Fail
[y numbers]=circular_prime(250) assert(isequal(y,17)&&isequal(numbers,[2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 197 199]))

s = 2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 197 199

Output argument "how_many" (and maybe others) not assigned during call to "circular_prime". Error in Test3 (line 1) [y numbers]=circular_prime(250)

4   Fail
[y numbers]=circular_prime(2000) assert(isequal(y,27)&&isequal(numbers,[2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 197 199 311 337 373 719 733 919 971 991 1193 1931]))

s = Columns 1 through 15 2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 Columns 16 through 27 197 199 311 337 373 719 733 919 971 991 1193 1931

Output argument "how_many" (and maybe others) not assigned during call to "circular_prime". Error in Test4 (line 1) [y numbers]=circular_prime(2000)

5   Fail
[y numbers]=circular_prime(10000) assert(isequal(y,33)&&isequal(numbers,[2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 197 199 311 337 373 719 733 919 971 991 1193 1931 3119 3779 7793 7937 9311 9377]))

s = Columns 1 through 15 2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 Columns 16 through 30 197 199 311 337 373 719 733 919 971 991 1193 1931 3119 3779 7793 Columns 31 through 33 7937 9311 9377

Output argument "how_many" (and maybe others) not assigned during call to "circular_prime". Error in Test5 (line 1) [y numbers]=circular_prime(10000)

6   Fail
[y numbers]=circular_prime(54321) assert(isequal(y,38)&&isequal(numbers,[2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 197 199 311 337 373 719 733 919 971 991 1193 1931 3119 3779 7793 7937 9311 9377 11939 19391 19937 37199 39119]))

s = Columns 1 through 15 2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 Columns 16 through 30 197 199 311 337 373 719 733 919 971 991 1193 1931 3119 3779 7793 Columns 31 through 38 7937 9311 9377 11939 19391 19937 37199 39119

Output argument "how_many" (and maybe others) not assigned during call to "circular_prime". Error in Test6 (line 1) [y numbers]=circular_prime(54321)