home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / alt / hackers / 1356 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.3 KB

  1. Path: sparky!uunet!mcsun!uknet!tlg
  2. From: tlg@uknet.ac.uk (Tim.Goodwin)
  3. Newsgroups: alt.hackers
  4. Subject: Re: Prime Number Generator
  5. Message-ID: <1381@uknet.ac.uk>
  6. Date: 3 Sep 92 10:22:56 GMT
  7. References: <1992Aug31.160225.26724@gateway.novell.com> <3756@randvax.rand.org> <1992Sep1.132304.20355@jarvis.csri.toronto.edu>
  8. Organization: UKnet
  9. Lines: 29
  10. Approved: no-room@the.inn
  11.  
  12. In article <1992Sep1.132304.20355@jarvis.csri.toronto.edu>
  13. flaps@dgp.toronto.edu (Alan J Rosenthal) writes:
  14. >jim@rand.org (Jim Gillogly) writes:
  15. >>The whole idea beind RSA encryption is that large prime numbers are *easy* to
  16. >>prove prime,
  17. >
  18. >Running a probabilistic algorithm does not yield a proof that they're prime.
  19.  
  20. No, but with a bit of care you can make a probabilistic algorithm more
  21. reliable than the machine you're running it on.
  22.  
  23. ObHack: arguments to uux often have parentheses.  rsh uses the shell. 
  24. Parentheses are shell metacharacters.  So
  25.  
  26.     rsh host /usr/bin/uux "$@"
  27.  
  28. won't work.  I came up with two solutions (or rather one solution
  29. expressed in two different ways).
  30.  
  31. [sh]
  32.     rsh host /usr/bin/uux `echo "$@" '' |sed "s/\([^ ]*\) /'\1' /g"`
  33.  
  34. [rc]
  35.     rsh host /usr/bin/uux '''' ^ $* ^ ''''
  36.  
  37. Tim.
  38. -- 
  39. perhaps if people had understood fork() better we | ; who am i
  40. wouldn't have threads - Rob Pike.                 | uknet.ac.uk!tlg
  41.