Some functions for finding primes in go