Is there any nice algorithm to find the nearest prime number to a given real number? I only need to search within the first 100 primes or so.
real
At present, I