lab4 up to primes