Cody

Problem 46099. Identify full reptend primes

Solution 2812090

Submitted on 9 Aug 2020
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
n = 3; assert(~isFullReptendPrime(n))

ans = 0.333333333333333

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test1 (line 2) assert(~isFullReptendPrime(n))

2   Fail
n = 5; assert(~isFullReptendPrime(n))

ans = 0.200000000000000

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test2 (line 2) assert(~isFullReptendPrime(n))

3   Fail
n = 7; assert(isFullReptendPrime(n))

ans = 0.142857142857143

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test3 (line 2) assert(isFullReptendPrime(n))

4   Fail
n = 19; assert(isFullReptendPrime(n))

ans = 0.052631578947368

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test4 (line 2) assert(isFullReptendPrime(n))

5   Fail
n = 23; assert(isFullReptendPrime(n))

ans = 0.043478260869565

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test5 (line 2) assert(isFullReptendPrime(n))

6   Fail
n = 47; assert(isFullReptendPrime(n))

ans = 0.021276595744681

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test6 (line 2) assert(isFullReptendPrime(n))

7   Fail
n = 53; assert(~isFullReptendPrime(n))

ans = 0.018867924528302

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test7 (line 2) assert(~isFullReptendPrime(n))

8   Fail
n = 101; assert(~isFullReptendPrime(n))

ans = 0.009900990099010

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test8 (line 2) assert(~isFullReptendPrime(n))

9   Fail
n = 128; assert(~isFullReptendPrime(n))

ans = 0.007812500000000

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test9 (line 2) assert(~isFullReptendPrime(n))

10   Fail
n = 379; assert(isFullReptendPrime(n))

ans = 0.002638522427441

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test10 (line 2) assert(isFullReptendPrime(n))

11   Fail
n = 1607; assert(isFullReptendPrime(n))

ans = 6.222775357809583e-04

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test11 (line 2) assert(isFullReptendPrime(n))

12   Fail
n = 9967; assert(isFullReptendPrime(n))

ans = 1.003310926055985e-04

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test12 (line 2) assert(isFullReptendPrime(n))

13   Fail
n = 9973; assert(~isFullReptendPrime(n))

ans = 1.002707309736288e-04

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test13 (line 2) assert(~isFullReptendPrime(n))

14   Fail
n = 28513; assert(isFullReptendPrime(n))

ans = 3.507172167081682e-05

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test14 (line 2) assert(isFullReptendPrime(n))

15   Fail
n = 177217; assert(isFullReptendPrime(n))

ans = 5.642799505690764e-06

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test15 (line 2) assert(isFullReptendPrime(n))

16   Fail
n = 225457; assert(isFullReptendPrime(n))

ans = 4.435435581951326e-06

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test16 (line 2) assert(isFullReptendPrime(n))

17   Fail
n = 225547; assert(~isFullReptendPrime(n))

ans = 4.433665710472762e-06

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test17 (line 2) assert(~isFullReptendPrime(n))

18   Fail
n = 308927; assert(isFullReptendPrime(n))

ans = 3.237010685372272e-06

Output argument "tf" (and maybe others) not assigned during call to "isFullReptendPrime". Error in Test18 (line 2) assert(isFullReptendPrime(n))

19   Pass
filetext = fileread('isFullReptendPrime.m'); reading = ~isempty(strfind(filetext, 'urlread')) || ~isempty(strfind(filetext, '001913')); assert(~reading, 'Illegal approach')