Search for some prime numbers using a slow algorithm