primes now works in non-static