Tag Archives: primes

Efficient prime number testing

In nearly every lower-level CS class, students are invariably asked to create a function that can recognize a prime number. There are very good reasons for this. For one thing, the study of prime numbers is one of the longest-running … Continue reading

Posted in Programming | Tagged , , | Leave a comment