primes here can end in 1,3,5,9,b and d. because 14 is 2x7. base 14 works the same a base 10, the only difference is that its half is on 7 not 5.
credits to aaron