home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!uniwa!DIALix!babel!del
- From: del@babel.DIALix.oz.au (D Elson)
- Newsgroups: comp.lang.pascal
- Subject: Hash Coding Revisited -- need prime number generator
- Distribution: world
- Message-ID: <725883589snx@babel.DIALix.oz.au>
- References: <1993Jan1.042852.26677@netcom.com>
- Date: Fri, 01 Jan 93 10:19:49 GMT
- Organization:
- Lines: 23
-
-
- Sorry, I couldn't resist this one ...
-
- In article <1993Jan1.042852.26677@netcom.com> jhesse@netcom.com writes:
-
- > I'm implementing a hashing algorithm and need a prime-number algorithm.
- >
- > (At this time the size isn't known, so that's why I need the algorithm.)
-
- Try this one ... all odd numbers are prime.
-
- Proof (from a mathematician ...) 3 is prime, 5 is prime, 7 is prime,
- therefore it is true by induction.
-
- Proof (from an engineer ...) 3 is prime, 5 is prime, 7 is prime, 9 is
- an error of measurement, 11 is prime, ...
-
- (lifted, although not in its entirety from rec.humor :) :) :) )
-
- Del
- -----------------------------------+-------------------------------------
- D Elson | del@DIALix.oz.au del@adied.oz.au
- -----------------------------------+-------------------------------------
-