Simple program for finding prime numbers