Tag Archives: composite

Find runs of composite numbers (non-primes) in C#

I recently had a birthday and my age is a prime number, so like any normal person I was wondering how long a run of consecutive composite numbers comes after my current age. (Doesn’t everyone wonder such things?) This example … Continue reading

Posted in algorithms, mathematics | Tagged , , , , , , , , , , | Leave a comment