Cody

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

Solution 1795547

Submitted on 23 Apr 2019 by Adam
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
[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]))

Out = [] L = 1 doub = 2 2 L = 1 doub = 3 3 L = 1 doub = 5 5 L = 1 doub = 7 7 L = 2 doub = 1 1 1 1 doub = 1 1 1 1 L = 2 doub = 1 3 1 3 doub = 1 3 1 3 L = 2 doub = 1 7 1 7 doub = 1 7 1 7 L = 2 doub = 1 9 1 9 doub = 1 9 1 9 L = 2 doub = 2 3 2 3 doub = 2 3 2 3 L = 2 doub = 2 9 2 9 doub = 2 9 2 9 L = 2 doub = 3 1 3 1 doub = 3 1 3 1 L = 2 doub = 3 7 3 7 doub = 3 7 3 7 L = 2 doub = 4 1 4 1 doub = 4 1 4 1 L = 2 doub = 4 3 4 3 doub = 4 3 4 3 L = 2 doub = 4 7 4 7 doub = 4 7 4 7 L = 2 doub = 5 3 5 3 doub = 5 3 5 3 L = 2 doub = 5 9 5 9 doub = 5 9 5 9 L = 2 doub = 6 1 6 1 doub = 6 1 6 1 L = 2 doub = 6 7 6 7 doub = 6 7 6 7 L = 2 doub = 7 1 7 1 doub = 7 1 7 1 L = 2 doub = 7 3 7 3 doub = 7 3 7 3 L = 2 doub = 7 9 7 9 doub = 7 9 7 9 L = 2 doub = 8 3 8 3 doub = 8 3 8 3 L = 2 doub = 8 9 8 9 doub = 8 9 8 9 L = 2 doub = 9 7 9 7 doub = 9 7 9 7 L = 3 doub = 1 0 1 1 0 1 doub = 1 0 1 1 0 1 doub = 1 0 1 1 0 1 L = 3 doub = 1 0 3 1 0 3 doub = 1 0 3 1 0 3 doub = 1 0 3 1 0 3 L = 3 doub = 1 0 7 1 0 7 doub = 1 0 7 1 0 7 doub = 1 0 7 1 0 7 L = 3 doub = 1 0 9 1 0 9 doub = 1 0 9 1 0 9 doub = 1 0 9 1 0 9 L = 3 doub = 1 1 3 1 1 3 doub = 1 1 3 1 1 3 doub = 1 1 3 1 1 3 L = 3 doub = 1 2 7 1 2 7 doub = 1 2 7 1 2 7 doub = 1 2 7 1 2 7 L = 3 doub = 1 3 1 1 3 1 doub = 1 3 1 1 3 1 doub = 1 3 1 1 3 1 L = 3 doub = 1 3 7 1 3 7 doub = 1 3 7 1 3 7 doub = 1 3 7 1 3 7 L = 3 doub = 1 3 9 1 3 9 doub = 1 3 9 1 3 9 doub = 1 3 9 1 3 9 L = 3 doub = 1 4 9 1 4 9 doub = 1 4 9 1 4 9 doub = 1 4 9 1 4 9 L = 3 doub = 1 5 1 1 5 1 doub = 1 5 1 1 5 1 doub = 1 5 1 1 5 1 L = 3 doub = 1 5 7 1 5 7 doub = 1 5 7 1 5 7 doub = 1 5 7 1 5 7 L = 3 doub = 1 6 3 1 6 3 doub = 1 6 3 1 6 3 doub = 1 6 3 1 6 3 L = 3 doub = 1 6 7 1 6 7 doub = 1 6 7 1 6 7 doub = 1 6 7 1 6 7 L = 3 doub = 1 7 3 1 7 3 doub = 1 7 3 1 7 3 doub = 1 7 3 1 7 3 L = 3 doub = 1 7 9 1 7 9 doub = 1 7 9 1 7 9 doub = 1 7 9 1 7 9 L = 3 doub = 1 8 1 1 8 1 doub = 1 8 1 1 8 1 doub = 1 8 1 1 8 1 L = 3 doub = 1 9 1 1 9 1 doub = 1 9 1 1 9 1 doub = 1 9 1 1 9 1 L = 3 doub = 1 9 3 1 9 3 doub = 1 9 3 1 9 3 doub = 1 9 3 1 9 3 L = 3 doub = 1 9 7 1 9 7 doub = 1 9 7 1 9 7 doub = 1 9 7 1 9 7 y = 16 numbers = 2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 197

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

Out = [] L = 1 doub = 2 2 L = 1 doub = 3 3 L = 1 doub = 5 5 L = 1 doub = 7 7 L = 2 doub = 1 1 1 1 doub = 1 1 1 1 L = 2 doub = 1 3 1 3 doub = 1 3 1 3 L = 2 doub = 1 7 1 7 doub = 1 7 1 7 L = 2 doub = 1 9 1 9 doub = 1 9 1 9 L = 2 doub = 2 3 2 3 doub = 2 3 2 3 L = 2 doub = 2 9 2 9 doub = 2 9 2 9 L = 2 doub = 3 1 3 1 doub = 3 1 3 1 L = 2 doub = 3 7 3 7 doub = 3 7 3 7 L = 2 doub = 4 1 4 1 doub = 4 1 4 1 L = 2 doub = 4 3 4 3 doub = 4 3 4 3 L = 2 doub = 4 7 4 7 doub = 4 7 4 7 L = 2 doub = 5 3 5 3 doub = 5 3 5 3 L = 2 doub = 5 9 5 9 doub = 5 9 5 9 L = 2 doub = 6 1 6 1 doub = 6 1 6 1 L = 2 doub = 6 7 6 7 doub = 6 7 6 7 L = 2 doub = 7 1 7 1 doub = 7 1 7 1 L = 2 doub = 7 3 7 3 doub = 7 3 7 3 L = 2 doub = 7 9 7 9 doub = 7 9 7 9 L = 2 doub = 8 3 8 3 doub = 8 3 8 3 L = 2 doub = 8 9 8 9 doub = 8 9 8 9 L = 2 doub = 9 7 9 7 doub = 9 7 9 7 y = 13 numbers = 2 3 5 7 11 13 17 31 37 71 73 79 97

3   Pass
[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]))

Out = [] L = 1 doub = 2 2 L = 1 doub = 3 3 L = 1 doub = 5 5 L = 1 doub = 7 7 L = 2 doub = 1 1 1 1 doub = 1 1 1 1 L = 2 doub = 1 3 1 3 doub = 1 3 1 3 L = 2 doub = 1 7 1 7 doub = 1 7 1 7 L = 2 doub = 1 9 1 9 doub = 1 9 1 9 L = 2 doub = 2 3 2 3 doub = 2 3 2 3 L = 2 doub = 2 9 2 9 doub = 2 9 2 9 L = 2 doub = 3 1 3 1 doub = 3 1 3 1 L = 2 doub = 3 7 3 7 doub = 3 7 3 7 L = 2 doub = 4 1 4 1 doub = 4 1 4 1 L = 2 doub = 4 3 4 3 doub = 4 3 4 3 L = 2 doub = 4 7 4 7 doub = 4 7 4 7 L = 2 doub = 5 3 5 3 doub = 5 3 5 3 L = 2 doub = 5 9 5 9 doub = 5 9 5 9 L = 2 doub = 6 1 6 1 doub = 6 1 6 1 L = 2 doub = 6 7 6 7 doub = 6 7 6 7 L = 2 doub = 7 1 7 1 doub = 7 1 7 1 L = 2 doub = 7 3 7 3 doub = 7 3 7 3 L = 2 doub = 7 9 7 9 doub = 7 9 7 9 L = 2 doub = 8 3 8 3 doub = 8 3 8 3 L = 2 doub = 8 9 8 9 doub = 8 9 8 9 L = 2 doub = 9 7 9 7 doub = 9 7 9 7 L = 3 doub = 1 0 1 1 0 1 doub = 1 0 1 1 0 1 doub = 1 0 1 1 0 1 L = 3 doub = 1 0 3 1 0 3 doub = 1 0 3 1 0 3 doub = 1 0 3 1 0 3 L = 3 doub = 1 0 7 1 0 7 doub = 1 0 7 1 0 7 doub = 1 0 7 1 0 7 L = 3 doub = 1 0 9 1 0 9 doub = 1 0 9 1 0 9 doub = 1 0 9 1 0 9 L = 3 doub = 1 1 3 1 1 3 doub = 1 1 3 1 1 3 doub = 1 1 3 1 1 3 L = 3 doub = 1 2 7 1 2 7 doub = 1 2 7 1 2 7 doub = 1 2 7 1 2 7 L = 3 doub = 1 3 1 1 3 1 doub = 1 3 1 1 3 1 doub = 1 3 1 1 3 1 L = 3 doub = 1 3 7 1 3 7 doub = 1 3 7 1 3 7 doub = 1 3 7 1 3 7 L = 3 doub = 1 3 9 1 3 9 doub = 1 3 9 1 3 9 doub = 1 3 9 1 3 9 L = 3 doub = 1 4 9 1 4 9 doub = 1 4 9 1 4 9 doub = 1 4 9 1 4 9 L = 3 doub = 1 5 1 1 5 1 doub = 1 5 1 1 5 1 doub = 1 5 1 1 5 1 L = 3 doub = 1 5 7 1 5 7 doub = 1 5 7 1 5 7 doub = 1 5 7 1 5 7 L = 3 doub = 1 6 3 1 6 3 doub = 1 6 3 1 6 3 doub = 1 6 3 1 6 3 L = 3 doub = 1 6 7 1 6 7 doub = 1 6 7 1 6 7 doub = 1 6 7 1 6 7 L = 3 doub = 1 7 3 1 7 3 doub = 1 7 3 1 7 3 doub = 1 7 3 1 7 3 L = 3 doub = 1 7 9 1 7 9 doub = 1 7 9 1 7 9 doub = 1 7 9 1 7 9 L = 3 doub = 1 8 1 1 8 1 doub = 1 8 1 1 8 1 doub = 1 8 1 1 8 1 L = 3 doub = 1 9 1 1 9 1 doub = 1 9 1 1 9 1 doub = 1 9 1 1 9 1 L = 3 doub = 1 9 3 1 9 3 doub = 1 9 3 1 9 3 doub = 1 9 3 1 9 3 L = 3 doub = 1 9 7 1 9 7 doub = 1 9 7 1 9 7 doub = 1 9 7 1 9 7 L = 3 doub = 1 9 9 1 9 9 doub = 1 9 9 1 9 9 doub = 1 9 9 1 9 9 L = 3 doub = 2 1 1 2 1 1 doub = 2 1 1 2 1 1 doub = 2 1 1 2 1 1 L = 3 doub = 2 2 3 2 2 3 doub = 2 2 3 2 2 3 doub = 2 2 3 2 2 3 L = 3 doub = 2 2 7 2 2 7 doub = 2 2 7 2 2 7 doub = 2 2 7 2 2 7 L = 3 doub = 2 2 9 2 2 9 doub = 2 2 9 2 2 9 doub = 2 2 9 2 2 9 L = 3 doub = 2 3 3 2 3 3 doub = 2 3 3 2 3 3 doub = 2 3 3 2 3 3 L = 3 doub = 2 3 9 2 3 9 doub = 2 3 9 2 3 9 doub = 2 3 9 2 3 9 L = 3 doub = 2 4 1 2 4 1 doub = 2 4 1 2 4 1 doub = 2 4 1 2 4 1 y = 17 numbers = 2 3 5 7 11 13 17 31 37 71 73 79 97 113 131 197 199

4   Pass
[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]))

Out = [] L = 1 doub = 2 2 L = 1 doub = 3 3 L = 1 doub = 5 5 L = 1 doub = 7 7 L = 2 doub = 1 1 1 1 doub = 1 1 1 1 L = 2 doub = 1 3 1 3 doub = 1 3 1 3 L = 2 doub = 1 7 1 7 doub = 1 7 1 7 L = 2 doub = 1 9 1 9 doub = 1 9 1 9 L = 2 doub = 2 3 2 3 doub = 2 3 2 3 L = 2 doub = 2 9 2 9 doub = 2 9 2 9 L = 2 doub = 3 1 3 1 doub = 3 1 3 1 L = 2 doub = 3 7 3 7 doub = 3 7 3 7 L = 2 doub = 4 1 4 1 doub = 4 1 4 1 L = 2 doub = 4 3 4 3 doub = 4 3 4 3 L = 2 doub = 4 7 4 7 doub = 4 7 4 7 L = 2 doub = 5 3 5 3 doub = 5 3 5 3 L = 2 doub = 5 9 5 9 doub = 5 9 5 9 L = 2 doub = 6 1 6 1 doub = 6 1 6 1 L = 2 doub = 6 7 6 7 doub = 6 7 6 7 L = 2 doub = 7 1 7 1 doub = 7 1 7 1 L = 2 doub = 7 3 7 3 doub = 7 3 7 3 L = 2 doub = 7 9 7 9 doub = 7 9 7 9 L = 2 doub = 8 3 8 3 doub = 8 3 8 3 L = 2 doub = 8 9 8 9 doub = 8 9 8 9 L = 2 doub = 9 7 9 7 doub = 9 7 9 7 L = 3 doub = 1 0 1 1 0 1 doub = 1 0 1 1 0 1 doub = 1 0 1 1 0 1 L = 3 doub = 1 0 3 1 0 3 doub = 1 0 3 1 0 3 doub = 1 0 3 1 0 3 L = 3 doub = 1 0 7 1 0 7 doub = 1 0 7 1 0 7 doub = 1 0 7 1 0 7 L = 3 doub = 1 0 9 1 0 9 doub = 1 0 9 1 0 9 doub = 1 0 9 1 0 9 L = 3 doub = 1 1 3 1 1 3 doub = 1 1 3 1 1 3 doub = 1 1 3 1 1 3 L = 3 doub = 1 2 7 1 2 7 doub = 1 2 7 1 2 7 doub = 1 2 7 1 2 7 L = 3 doub = 1 3 1 1 3 1 doub = 1 3 1 1 3 1 doub = 1 3 1 1 3 1 L = 3 doub = 1 3 7 1 3 7 doub = 1 3 7 1 3 7 doub = 1 3 7 1 3 7 L = 3 doub = 1 3 9 1 3 9 doub = 1 3 9 1 3 9 doub = 1 3 9 1 3 9 L = 3 doub = 1 4 9 1 4 9 doub = 1 4 9 1 4 9 doub = 1 4 9 1 4 9 L = 3 doub = 1 5 1 1 5 1 doub = 1 5 1 1 5 1 doub = 1 5 1 1 5 1 L = 3 doub = 1 5 7 1 5 7 doub = 1 5 7 1 5 7 doub = 1 5 7 1 5 7 L = 3 doub = 1 6 3 1 6 3 doub = 1 6 3 1 6 3 doub = 1 6 3 1 6 3 L = 3 doub = 1 6 7 1 6 7 doub = 1 6 7 1 6 7 doub = 1 6 7 1 6 7 L = 3 doub = 1 7 3 1 7 3 doub = 1 7 3 1 7 3 doub = 1 7 3 1 7 3 L = 3 doub = 1 7 9 1 7 9 doub = 1 7 9 1 7 9 doub = 1 7 9 1 7 9 L = 3 doub = 1 8 1 1 8 1 doub = 1 8 1 1 8 1 doub = 1 8 1 1 8 1 L = 3 doub = 1 9 1 1 9 1 doub = 1 9 1 1 9 1 doub = 1 9 1 1 9 1 L = 3 doub = 1 9 3 1 9 3 doub = 1 9 3 1 9 3 doub = 1 9 3 1 9 3 L = 3 doub = 1 9 7 1 9 7 doub = 1 9 7 1 9 7 doub = 1 9 7 1 9 7 L = 3 doub = 1 9 9 1 9 9 doub = 1 9 9 1 9 9 doub = 1 9 9 1 9 9 L = 3 doub = 2 1 1 2 1 1 doub = 2 1 1 2 1 1 doub = 2 1 1 2 1 1 L = 3 doub = 2 2 3 2 2 3 doub = 2 2 3 2 2 3 doub = 2 2 3 2 2 3 L = 3 doub = 2 2 7 2 2 7 doub = 2 2 7 2 2 7 doub = 2 2 7 2 2 7 L = 3 doub = 2 2 9 2 2 9 doub = 2 2 9 2 2 9 doub = 2 2 9 2 2 9 L = 3 doub = 2 3 3 2 3 3 doub = 2 3 3 2 3 3 doub = 2 3 3 2 3 3 L = 3 doub = 2 3 9 2 3 9 doub = 2 3 9 2 3 9 doub = 2 3 9 2 3 9 L = 3 doub = 2 4 1 2 4 1 doub = 2 4 1 2 4 1 doub = 2 4 1 2 4 1 L = 3 doub = 2 5 1 2 5 1 doub = 2 5 1 2 5 1 doub = 2 5 1 2 5 1 L = 3 doub = 2 5 7 2 5 7 doub = 2 5 7 2 5 7 doub = 2 5 7 2 5 7 L = 3 doub = 2 6 3 2 6 3 doub = 2 6 3 2 6 3 doub = 2 6 3 2 6 3 L = 3 doub = 2 6 9 2 6 9 doub = 2 6 9 2 6 9 doub = 2 6 9 2 6 9 L = 3 doub = 2 7 1 2 7 1 doub = 2 7 1 2 7 1 doub = 2 7 1 2 7 1 L = 3 doub = 2 7 7 2 7 7 doub = 2 7 7 2 7 7 doub = 2 7 7 2 7 7 L = 3 doub = 2 8 1 2 8 1 doub = 2 8 1 2 8 1 doub = 2 8 1 2 8 1 L = 3 doub = 2 8 3 2 8 3 doub = 2 8 3 2 8 3 doub = 2 8 3 2 8 3 L = 3 doub = 2 9 3 2 9 3 doub = 2 9 3 2 9 3 doub = 2 9 3 2 9 3 L = 3 doub = 3 0 7 3 0 7 doub = 3 0 7 3 0 7 doub = 3 0 7 3 0 7 L = 3 doub = 3 1 1 3 1 1 doub = 3 1 1 3 1 1 doub = 3 1 1 3 1 1 L = 3 doub = 3 1 3 3 1 3 doub = 3 1 3 3 1 3 doub = 3 1 3 3 1 3 L = 3 doub = 3 1 7 3 1 7 doub = 3 1 7 3 1 7 doub = 3 1 7 3 1 7 L = 3 doub = 3 3 1 3 3 1 doub = 3 3 1 3 3 1 doub = 3 3 1 3 3 1 L = 3 doub = 3 3 7 3 3 7 doub = 3 3 7 3 3 7 doub = 3 3 7 3 3 7 L = 3 doub = 3 4 7 3 4 7 doub = 3 4 7 3 4 7 doub = 3 4 7 3 4 7 L = 3 doub = 3 4 9 3 4 9 doub = 3 4 9 3 4 9 doub = 3 4 9 3 4 9 L = 3 doub = 3 5 3 3 5 3 doub = 3 5 3 3 5 3 doub = 3 5 3 3 5 3 L = 3 doub = 3 5 9 3 5 9 doub = 3 5 9 3 5 9 doub = 3 5 9 3 5 9 L = 3 doub = 3 6 7 3 6 7 doub = 3 6 7 3 6 7 doub = 3 6 7 3 6 7 L = 3 doub = 3 7 3 3 7 3 doub = 3 7 3 3 7 3 doub = 3 7 3 3 7 3 L = 3 doub = 3 7 9 3 7 9 doub = 3 7 9 3 7 9 doub = 3 7 9 3 7 9 L = 3 doub = 3 8 3 3 8 3 doub = 3 8 3 3 8 3 doub = 3 8 3 3 8 3 L = 3 doub = 3 8 9 3 8 9 doub = 3 8 9 3 8 9 doub = 3 8 9 3 8 9 L = 3...

5   Pass
[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]))

Out = [] L = 1 doub = 2 2 L = 1 doub = 3 3 L = 1 doub = 5 5 L = 1 doub = 7 7 L = 2 doub = 1 1 1 1 doub = 1 1 1 1 L = 2 doub = 1 3 1 3 doub = 1 3 1 3 L = 2 doub = 1 7 1 7 doub = 1 7 1 7 L = 2 doub = 1 9 1 9 doub = 1 9 1 9 L = 2 doub = 2 3 2 3 doub = 2 3 2 3 L = 2 doub = 2 9 2 9 doub = 2 9 2 9 L = 2 doub = 3 1 3 1 doub = 3 1 3 1 L = 2 doub = 3 7 3 7 doub = 3 7 3 7 L = 2 doub = 4 1 4 1 doub = 4 1 4 1 L = 2 doub = 4 3 4 3 doub = 4 3 4 3 L = 2 doub = 4 7 4 7 doub = 4 7 4 7 L = 2 doub = 5 3 5 3 doub = 5 3 5 3 L = 2 doub = 5 9 5 9 doub = 5 9 5 9 L = 2 doub = 6 1 6 1 doub = 6 1 6 1 L = 2 doub = 6 7 6 7 doub = 6 7 6 7 L = 2 doub = 7 1 7 1 doub = 7 1 7 1 L = 2 doub = 7 3 7 3 doub = 7 3 7 3 L = 2 doub = 7 9 7 9 doub = 7 9 7 9 L = 2 doub = 8 3 8 3 doub = 8 3 8 3 L = 2 doub = 8 9 8 9 doub = 8 9 8 9 L = 2 doub = 9 7 9 7 doub = 9 7 9 7 L = 3 doub = 1 0 1 1 0 1 doub = 1 0 1 1 0 1 doub = 1 0 1 1 0 1 L = 3 doub = 1 0 3 1 0 3 doub = 1 0 3 1 0 3 doub = 1 0 3 1 0 3 L = 3 doub = 1 0 7 1 0 7 doub = 1 0 7 1 0 7 doub = 1 0 7 1 0 7 L = 3 doub = 1 0 9 1 0 9 doub = 1 0 9 1 0 9 doub = 1 0 9 1 0 9 L = 3 doub = 1 1 3 1 1 3 doub = 1 1 3 1 1 3 doub = 1 1 3 1 1 3 L = 3 doub = 1 2 7 1 2 7 doub = 1 2 7 1 2 7 doub = 1 2 7 1 2 7 L = 3 doub = 1 3 1 1 3 1 doub = 1 3 1 1 3 1 doub = 1 3 1 1 3 1 L = 3 doub = 1 3 7 1 3 7 doub = 1 3 7 1 3 7 doub = 1 3 7 1 3 7 L = 3 doub = 1 3 9 1 3 9 doub = 1 3 9 1 3 9 doub = 1 3 9 1 3 9 L = 3 doub = 1 4 9 1 4 9 doub = 1 4 9 1 4 9 doub = 1 4 9 1 4 9 L = 3 doub = 1 5 1 1 5 1 doub = 1 5 1 1 5 1 doub = 1 5 1 1 5 1 L = 3 doub = 1 5 7 1 5 7 doub = 1 5 7 1 5 7 doub = 1 5 7 1 5 7 L = 3 doub = 1 6 3 1 6 3 doub = 1 6 3 1 6 3 doub = 1 6 3 1 6 3 L = 3 doub = 1 6 7 1 6 7 doub = 1 6 7 1 6 7 doub = 1 6 7 1 6 7 L = 3 doub = 1 7 3 1 7 3 doub = 1 7 3 1 7 3 doub = 1 7 3 1 7 3 L = 3 doub = 1 7 9 1 7 9 doub = 1 7 9 1 7 9 doub = 1 7 9 1 7 9 L = 3 doub = 1 8 1 1 8 1 doub = 1 8 1 1 8 1 doub = 1 8 1 1 8 1 L = 3 doub = 1 9 1 1 9 1 doub = 1 9 1 1 9 1 doub = 1 9 1 1 9 1 L = 3 doub = 1 9 3 1 9 3 doub = 1 9 3 1 9 3 doub = 1 9 3 1 9 3 L = 3 doub = 1 9 7 1 9 7 doub = 1 9 7 1 9 7 doub = 1 9 7 1 9 7 L = 3 doub = 1 9 9 1 9 9 doub = 1 9 9 1 9 9 doub = 1 9 9 1 9 9 L = 3 doub = 2 1 1 2 1 1 doub = 2 1 1 2 1 1 doub = 2 1 1 2 1 1 L = 3 doub = 2 2 3 2 2 3 doub = 2 2 3 2 2 3 doub = 2 2 3 2 2 3 L = 3 doub = 2 2 7 2 2 7 doub = 2 2 7 2 2 7 doub = 2 2 7 2 2 7 L = 3 doub = 2 2 9 2 2 9 doub = 2 2 9 2 2 9 doub = 2 2 9 2 2 9 L = 3 doub = 2 3 3 2 3 3 doub = 2 3 3 2 3 3 doub = 2 3 3 2 3 3 L = 3 doub = 2 3 9 2 3 9 doub = 2 3 9 2 3 9 doub = 2 3 9 2 3 9 L = 3 doub = 2 4 1 2 4 1 doub = 2 4 1 2 4 1 doub = 2 4 1 2 4 1 L = 3 doub = 2 5 1 2 5 1 doub = 2 5 1 2 5 1 doub = 2 5 1 2 5 1 L = 3 doub = 2 5 7 2 5 7 doub = 2 5 7 2 5 7 doub = 2 5 7 2 5 7 L = 3 doub = 2 6 3 2 6 3 doub = 2 6 3 2 6 3 doub = 2 6 3 2 6 3 L = 3 doub = 2 6 9 2 6 9 doub = 2 6 9 2 6 9 doub = 2 6 9 2 6 9 L = 3 doub = 2 7 1 2 7 1 doub = 2 7 1 2 7 1 doub = 2 7 1 2 7 1 L = 3 doub = 2 7 7 2 7 7 doub = 2 7 7 2 7 7 doub = 2 7 7 2 7 7 L = 3 doub = 2 8 1 2 8 1 doub = 2 8 1 2 8 1 doub = 2 8 1 2 8 1 L = 3 doub = 2 8 3 2 8 3 doub = 2 8 3 2 8 3 doub = 2 8 3 2 8 3 L = 3 doub = 2 9 3 2 9 3 doub = 2 9 3 2 9 3 doub = 2 9 3 2 9 3 L = 3 doub = 3 0 7 3 0 7 doub = 3 0 7 3 0 7 doub = 3 0 7 3 0 7 L = 3 doub = 3 1 1 3 1 1 doub = 3 1 1 3 1 1 doub = 3 1 1 3 1 1 L = 3 doub = 3 1 3 3 1 3 doub = 3 1 3 3 1 3 doub = 3 1 3 3 1 3 L = 3 doub = 3 1 7 3 1 7 doub = 3 1 7 3 1 7 doub = 3 1 7 3 1 7 L = 3 doub = 3 3 1 3 3 1 doub = 3 3 1 3 3 1 doub = 3 3 1 3 3 1 L = 3 doub = 3 3 7 3 3 7 doub = 3 3 7 3 3 7 doub = 3 3 7 3 3 7 L = 3 doub = 3 4 7 3 4 7 doub = 3 4 7 3 4 7 doub = 3 4 7 3 4 7 L = 3 doub = 3 4 9 3 4 9 doub = 3 4 9 3 4 9 doub = 3 4 9 3 4 9 L = 3 doub = 3 5 3 3 5 3 doub = 3 5 3 3 5 3 doub = 3 5 3 3 5 3 L = 3 doub = 3 5 9 3 5 9 doub = 3 5 9 3 5 9 doub = 3 5 9 3 5 9 L = 3 doub = 3 6 7 3 6 7 doub = 3 6 7 3 6 7 doub = 3 6 7 3 6 7 L = 3 doub = 3 7 3 3 7 3 doub = 3 7 3 3 7 3 doub = 3 7 3 3 7 3 L = 3 doub = 3 7 9 3 7 9 doub = 3 7 9 3 7 9 doub = 3 7 9 3 7 9 L = 3 doub = 3 8 3 3 8 3 doub = 3 8 3 3 8 3 doub = 3 8 3 3 8 3 L = 3 doub = 3 8 9 3 8 9 doub = 3 8 9 3 8 9 doub = 3 8 9 3 8 9 L = 3...

6   Pass
[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]))

Out = [] L = 1 doub = 2 2 L = 1 doub = 3 3 L = 1 doub = 5 5 L = 1 doub = 7 7 L = 2 doub = 1 1 1 1 doub = 1 1 1 1 L = 2 doub = 1 3 1 3 doub = 1 3 1 3 L = 2 doub = 1 7 1 7 doub = 1 7 1 7 L = 2 doub = 1 9 1 9 doub = 1 9 1 9 L = 2 doub = 2 3 2 3 doub = 2 3 2 3 L = 2 doub = 2 9 2 9 doub = 2 9 2 9 L = 2 doub = 3 1 3 1 doub = 3 1 3 1 L = 2 doub = 3 7 3 7 doub = 3 7 3 7 L = 2 doub = 4 1 4 1 doub = 4 1 4 1 L = 2 doub = 4 3 4 3 doub = 4 3 4 3 L = 2 doub = 4 7 4 7 doub = 4 7 4 7 L = 2 doub = 5 3 5 3 doub = 5 3 5 3 L = 2 doub = 5 9 5 9 doub = 5 9 5 9 L = 2 doub = 6 1 6 1 doub = 6 1 6 1 L = 2 doub = 6 7 6 7 doub = 6 7 6 7 L = 2 doub = 7 1 7 1 doub = 7 1 7 1 L = 2 doub = 7 3 7 3 doub = 7 3 7 3 L = 2 doub = 7 9 7 9 doub = 7 9 7 9 L = 2 doub = 8 3 8 3 doub = 8 3 8 3 L = 2 doub = 8 9 8 9 doub = 8 9 8 9 L = 2 doub = 9 7 9 7 doub = 9 7 9 7 L = 3 doub = 1 0 1 1 0 1 doub = 1 0 1 1 0 1 doub = 1 0 1 1 0 1 L = 3 doub = 1 0 3 1 0 3 doub = 1 0 3 1 0 3 doub = 1 0 3 1 0 3 L = 3 doub = 1 0 7 1 0 7 doub = 1 0 7 1 0 7 doub = 1 0 7 1 0 7 L = 3 doub = 1 0 9 1 0 9 doub = 1 0 9 1 0 9 doub = 1 0 9 1 0 9 L = 3 doub = 1 1 3 1 1 3 doub = 1 1 3 1 1 3 doub = 1 1 3 1 1 3 L = 3 doub = 1 2 7 1 2 7 doub = 1 2 7 1 2 7 doub = 1 2 7 1 2 7 L = 3 doub = 1 3 1 1 3 1 doub = 1 3 1 1 3 1 doub = 1 3 1 1 3 1 L = 3 doub = 1 3 7 1 3 7 doub = 1 3 7 1 3 7 doub = 1 3 7 1 3 7 L = 3 doub = 1 3 9 1 3 9 doub = 1 3 9 1 3 9 doub = 1 3 9 1 3 9 L = 3 doub = 1 4 9 1 4 9 doub = 1 4 9 1 4 9 doub = 1 4 9 1 4 9 L = 3 doub = 1 5 1 1 5 1 doub = 1 5 1 1 5 1 doub = 1 5 1 1 5 1 L = 3 doub = 1 5 7 1 5 7 doub = 1 5 7 1 5 7 doub = 1 5 7 1 5 7 L = 3 doub = 1 6 3 1 6 3 doub = 1 6 3 1 6 3 doub = 1 6 3 1 6 3 L = 3 doub = 1 6 7 1 6 7 doub = 1 6 7 1 6 7 doub = 1 6 7 1 6 7 L = 3 doub = 1 7 3 1 7 3 doub = 1 7 3 1 7 3 doub = 1 7 3 1 7 3 L = 3 doub = 1 7 9 1 7 9 doub = 1 7 9 1 7 9 doub = 1 7 9 1 7 9 L = 3 doub = 1 8 1 1 8 1 doub = 1 8 1 1 8 1 doub = 1 8 1 1 8 1 L = 3 doub = 1 9 1 1 9 1 doub = 1 9 1 1 9 1 doub = 1 9 1 1 9 1 L = 3 doub = 1 9 3 1 9 3 doub = 1 9 3 1 9 3 doub = 1 9 3 1 9 3 L = 3 doub = 1 9 7 1 9 7 doub = 1 9 7 1 9 7 doub = 1 9 7 1 9 7 L = 3 doub = 1 9 9 1 9 9 doub = 1 9 9 1 9 9 doub = 1 9 9 1 9 9 L = 3 doub = 2 1 1 2 1 1 doub = 2 1 1 2 1 1 doub = 2 1 1 2 1 1 L = 3 doub = 2 2 3 2 2 3 doub = 2 2 3 2 2 3 doub = 2 2 3 2 2 3 L = 3 doub = 2 2 7 2 2 7 doub = 2 2 7 2 2 7 doub = 2 2 7 2 2 7 L = 3 doub = 2 2 9 2 2 9 doub = 2 2 9 2 2 9 doub = 2 2 9 2 2 9 L = 3 doub = 2 3 3 2 3 3 doub = 2 3 3 2 3 3 doub = 2 3 3 2 3 3 L = 3 doub = 2 3 9 2 3 9 doub = 2 3 9 2 3 9 doub = 2 3 9 2 3 9 L = 3 doub = 2 4 1 2 4 1 doub = 2 4 1 2 4 1 doub = 2 4 1 2 4 1 L = 3 doub = 2 5 1 2 5 1 doub = 2 5 1 2 5 1 doub = 2 5 1 2 5 1 L = 3 doub = 2 5 7 2 5 7 doub = 2 5 7 2 5 7 doub = 2 5 7 2 5 7 L = 3 doub = 2 6 3 2 6 3 doub = 2 6 3 2 6 3 doub = 2 6 3 2 6 3 L = 3 doub = 2 6 9 2 6 9 doub = 2 6 9 2 6 9 doub = 2 6 9 2 6 9 L = 3 doub = 2 7 1 2 7 1 doub = 2 7 1 2 7 1 doub = 2 7 1 2 7 1 L = 3 doub = 2 7 7 2 7 7 doub = 2 7 7 2 7 7 doub = 2 7 7 2 7 7 L = 3 doub = 2 8 1 2 8 1 doub = 2 8 1 2 8 1 doub = 2 8 1 2 8 1 L = 3 doub = 2 8 3 2 8 3 doub = 2 8 3 2 8 3 doub = 2 8 3 2 8 3 L = 3 doub = 2 9 3 2 9 3 doub = 2 9 3 2 9 3 doub = 2 9 3 2 9 3 L = 3 doub = 3 0 7 3 0 7 doub = 3 0 7 3 0 7 doub = 3 0 7 3 0 7 L = 3 doub = 3 1 1 3 1 1 doub = 3 1 1 3 1 1 doub = 3 1 1 3 1 1 L = 3 doub = 3 1 3 3 1 3 doub = 3 1 3 3 1 3 doub = 3 1 3 3 1 3 L = 3 doub = 3 1 7 3 1 7 doub = 3 1 7 3 1 7 doub = 3 1 7 3 1 7 L = 3 doub = 3 3 1 3 3 1 doub = 3 3 1 3 3 1 doub = 3 3 1 3 3 1 L = 3 doub = 3 3 7 3 3 7 doub = 3 3 7 3 3 7 doub = 3 3 7 3 3 7 L = 3 doub = 3 4 7 3 4 7 doub = 3 4 7 3 4 7 doub = 3 4 7 3 4 7 L = 3 doub = 3 4 9 3 4 9 doub = 3 4 9 3 4 9 doub = 3 4 9 3 4 9 L = 3 doub = 3 5 3 3 5 3 doub = 3 5 3 3 5 3 doub = 3 5 3 3 5 3 L = 3 doub = 3 5 9 3 5 9 doub = 3 5 9 3 5 9 doub = 3 5 9 3 5 9 L = 3 doub = 3 6 7 3 6 7 doub = 3 6 7 3 6 7 doub = 3 6 7 3 6 7 L = 3 doub = 3 7 3 3 7 3 doub = 3 7 3 3 7 3 doub = 3 7 3 3 7 3 L = 3 doub = 3 7 9 3 7 9 doub = 3 7 9 3 7 9 doub = 3 7 9 3 7 9 L = 3 doub = 3 8 3 3 8 3 doub = 3 8 3 3 8 3 doub = 3 8 3 3 8 3 L = 3 doub = 3 8 9 3 8 9 doub = 3 8 9 3 8 9 doub = 3 8 9 3 8 9 L = 3...