home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7804 < prev    next >
Encoding:
Internet Message Format  |  1993-01-02  |  1.2 KB

  1. Path: sparky!uunet!munnari.oz.au!uniwa!DIALix!babel!del
  2. From: del@babel.DIALix.oz.au (D Elson)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Hash Coding Revisited -- need prime number generator 
  5. Distribution: world
  6. Message-ID: <725883589snx@babel.DIALix.oz.au>
  7. References: <1993Jan1.042852.26677@netcom.com>
  8. Date: Fri, 01 Jan 93 10:19:49 GMT
  9. Organization: 
  10. Lines: 23
  11.  
  12.  
  13. Sorry, I couldn't resist this one ...
  14.  
  15. In article <1993Jan1.042852.26677@netcom.com> jhesse@netcom.com writes:
  16.  
  17.   > I'm implementing a hashing algorithm and need a prime-number algorithm.
  18.   > 
  19.   > (At this time the size isn't known, so that's why I need the algorithm.)
  20.  
  21. Try this one ... all odd numbers are prime.
  22.  
  23. Proof (from a mathematician ...) 3 is prime, 5 is prime, 7 is prime,
  24.     therefore it is true by induction.
  25.  
  26. Proof (from an engineer ...) 3 is prime, 5 is prime, 7 is prime, 9 is
  27.     an error of measurement, 11 is prime, ...
  28.  
  29. (lifted, although not in its entirety from rec.humor  :) :) :)  )
  30.  
  31. Del
  32. -----------------------------------+-------------------------------------
  33. D Elson                            |  del@DIALix.oz.au del@adied.oz.au
  34. -----------------------------------+-------------------------------------
  35.