Page 1 of 1

IsPrime function

Posted: Thu Jan 16, 2003 6:57 am
by 27584NX
How do I develop a simple function to check if some integer is prime or not? Of course I would appreciate you would not submit the trivial one, that I consider building a primes array until I reach the desired number and checking for mod not zero for the number if it

Posted: Thu Jan 16, 2003 10:32 am
by Larry
http://acm.uva.es/board/viewtopic.php?t=1662

Try looking at the above thread... =)