Primes
Moderator: Board moderators
-
- New poster
- Posts: 5
- Joined: Thu Jan 01, 2004 10:43 pm
- Location: Gdynia, Poland
Primes
Could anybody tell me if there's a method which checks if the number n is a prime? I know only an algo O(sqrt(n)) which is well-know. There's Eratostenes' Sieve too, but the big numbers cannot be checked due to memory limits.
"Imagination is more important than knowledge" Albert Einstein