Finding prime numbers program