Primes are useful little critters

Prime numbers sure do come in handy sometimes. Imagine, for example, that you have several timed tasks and you want to make sure that two of them never fire at exactly the same moment. Using primes for the intervals is one surefire way to guarantee that they'll never fire simultaneously (since primes cannot be multiples of each other.)

This is one of those moments where I realize I shouldn't be blogging but heading to bed...

What other wonderful uses for prime numbers have you found? Do share! :)

Comments