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
by Peter on 2006-12-19 00:34:08
by Xiaolei Shi on 2006-12-19 01:00:27
by VeryVito on 2006-12-19 01:19:14
by James O'Reilly on 2006-12-19 03:06:06
by The Lazy FlashDev » Blog Archive » Primes are useful little critters (at Aral Balkan) on 2006-12-21 09:11:00
by Mark on 2007-01-15 18:01:28
by Mark on 2007-01-15 18:11:42
by Mark on 2007-01-15 18:12:31
by aral on 2007-01-15 22:19:12