add algorithm of computing primes