[46720] in Cypherpunks

home help back first fref pref prev next nref lref last post

Re: phone calls from hell

daemon@ATHENA.MIT.EDU (Simon Spero)
Sun Jan 7 17:09:10 1996

Date: Sun, 7 Jan 1996 14:01:27 -0800 (PST)
From: Simon Spero <ses@tipper.oit.unc.edu>
To: Brad Dolan <bdolan@use.usit.net>
Cc: cypherpunks@toad.com
In-Reply-To: <Pine.SOL.3.91.960107130431.12839B-100000@use.usit.net>


Hey - he spent so much time training suicide bombers maybe the phone was 
set to blow if anyone dialed the, er,  Samaritans.

Simon

(defun modexpt (x y n)  "computes (x^y) mod n"
  (cond ((= y 0) 1) 	((= y 1) (mod x n))
	((evenp y) (mod (expt (modexpt x (/ y 2) n) 2) n))
	(t (mod (* x (modexpt x (1- y) n)) n))))


home help back first fref pref prev next nref lref last post