Profiling various methods for computing primes