TI-92 number theorhy programs - ntheory.zip [01/01]
[Prev][Next][Index][Thread]
TI-92 number theorhy programs - ntheory.zip [01/01]
-
Subject: TI-92 number theorhy programs - ntheory.zip [01/01]
-
From: Paul Pollack <paulp@TELEVAULT.COM>
-
Date: Mon, 22 Jul 1996 22:08:41 GMT
-
In-Reply-To: <>
Well, I converted a couple of programs from the 85 to the 92 and
am attaching the ZIP file for version 0.5. All of these programs
should work with integers up to about 300 digits long.
psprime: Outputs true or false depending on whether a number passes 2^p=2 (mod
p) -- this doesn't prove primality, but if a number fails it, it's composite.
mprime: Tests to see if the number is a strong a-SPRP for all primes a such
that 1 < a < upto. Upto is determined either internally (if input < 3e14, then
upto is chosen as to assure primality) or by a second user parameter (ignored
if input < 3e14). If a number passes this test, even just for a=2, it's VERY
likely to be prime.
hprime: Front end for psprime and mprime.
pollard: Attempts to factor a number by Pollard-Rho; this program needs
improvements desperately, which I'll hopefully add by the next version.
modpwr: Evaluates a^b (mod n), where a^b is too big for the 92's integer math
routines.
There are also a couple of other miscellaneous things included in here; more
information can be found in the documentation. BE SURE TO STORE THE FILES IN
THE ntheory DIRECTORY!
The latest version of this program group will soon be posted at
<URL: http://www.geocities.com/Hollywood/2979/archive.html>.
-- Paul
paulp@televault.com
BEGIN -- Cut Here -- cut here
begin 644 ntheory.zip
M4$L#!!0````(`&"']B!ZHL#J)P4``,(+```+````3E1(14]262XY,D>=5EU,
M'%44/L."NYL%1:#9<;&9:XQ)^5GIHF"!X$\:?TA$":4^&%]FV:$[Z>S,=&8V
M@$D38J$;,$U#XI-OZOI@8HSZIB^F?=%7&_M00C1&)L*++TW?C'K.O7-G%]S:
M6M+MWC/W^\X]]SL_.X.#"S,3HX.#"LB_5SVGZK(ETS)820^,$COYW,CHZ,C$
M^#`KC$^.G0(PDT].'"NDX#JB[:!L.-XJ:)#D=MGUS(H!T(/KVPF`BE-RESV`
M7K3_;$<[VB=[(@W@.I:E>R6.[\F@C=N6Z0<(A7-D^X)`^`_1]JN5JA4(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