7, better algorithm for primes