fixed but doesn't work for some primes - aka 15