Page 1 of 1

object occuring in prime numbers

Posted: May 11th, 2007, 10:27 am
by r.t-rone
Is it possible to create an expression that would cause an object to occur in prime numbers?

Posted: May 11th, 2007, 2:16 pm
by Lord Scales
I really dunno, guy. But I think it is a pretty difficult thing, once to find if a number is a prime we have to divide it by the nearest prime and see something in the division (I dunno that well) and if the number is big it is a pain to find the nearest prime. I guess we must do some monster loop.

See the WikiPedia articles:
http://en.wikipedia.org/wiki/Prime_number
http://en.wikipedia.org/wiki/List_of_prime_numbers