look sequentially for prime numbers