On 2015-11-04, Rainer Rosenthal <r.rosenthal@web.de> wrote:
For a problem in recreational math I am testing numbers of
magnitude around 10^1400 whether they are prime or not.
It takes about two and half an hour per number when I use
the standard isprime() Funktion.
Are there ways inside Maple (I use V) to get the results faster?
That is fast. Remember that if you were to try testing primality by
division it would take many many many times longer than that age of the universe. There exist probabilistic primality tests-- depends on how
much probablility you are willing to accept that the number is reported
as prime but is really not. (the probabillies are verysmall) There is
also a deterministic polynomial time test. But I think the polynomial is quite large.Wikipedia suggests about l^6.
I do not know what Maple uses in the isprime() function.
For a problem in recreational math I am testing numbers of
magnitude around 10^1400 whether they are prime or not.
It takes about two and half an hour per number when I use
the standard isprime() Funktion.
Are there ways inside Maple (I use V) to get the results faster?
Wolfram Alpha doesn's accept large numbers like that without
fee. Are there any sources in the web accepting large numbers
that are free and reliable?
Cheers,
Rainer
For a problem in recreational math I am testing numbers of
magnitude around 10^1400 whether they are prime or not.
It takes about two and half an hour per number when I use
the standard isprime() Funktion.
Are there ways inside Maple (I use V) to get the results faster?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 233:28:25 |
Calls: | 6,624 |
Files: | 12,172 |
Messages: | 5,319,629 |