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

  1. Xref: sparky comp.lang.c:19110 comp.lang.pascal:7784
  2. Newsgroups: comp.lang.c,comp.lang.pascal
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!csus.edu!netcom.com!jhesse
  4. From: jhesse@netcom.com (John Hesse)
  5. Subject: Re: Hash Coding Revisited -- need prime number generator
  6. Message-ID: <1993Jan1.042852.26677@netcom.com>
  7. Organization: Netcom - Online Communication Services (408 241-9760 guest)
  8. References: <1992Dec23.045823.3085@spartan.ac.BrockU.CA>
  9. Date: Fri, 1 Jan 1993 04:28:52 GMT
  10. Lines: 17
  11.  
  12. I'm implementing a hashing algorithm and need a prime-number algorithm.
  13.  
  14. (At this time the size isn't known, so that's why I need the algorithm.)
  15.  
  16. C code, or even BASIC, would be extremely helpful. BTW, I need a 6-digit
  17. prime, if that makes a difference. Thanks a million (not a prime :).
  18.  
  19. Also, I could not find an "algorithms" topic, so that is why I put it
  20. here. Hope no one is upset.
  21.  
  22. Happy New Year!!!! :-)
  23. -- 
  24. ----------------------------+---------------+-------------------------
  25. J Hesse                        |      END      |    California       
  26. jhesse@netcom.com           |    50 MPH     |     traffic
  27. Moss Beach, Calif           |  SPEED LIMIT  |       sign
  28. ----------------------------+---------------+-------------------------
  29.