Improved problem 26 using Full Reptend Primes