Simple program that searches for prime numbers