prime
, lprime
prime()
and lprime()
, returns
an element stored in the system table of prime numbers.
Here, index
is a non-negative integer and be used as an index
for the prime tables.
The function prime()
can return one of 1900 primes
up to 16381 indexed so that the smaller one has smaller
index. The function lprime()
can return one of 999 primes which
are 8 digit sized and indexed so that the larger one has the smaller
index.
The two function always returns 0 for other indices.
PARI
function
pari(nextprime,number)
.
[95] prime(0); 2 [96] prime(1228); 9973 [97] lprime(0); 99999989 [98] lprime(999); 0
pari
.
Go to the first, previous, next, last section, table of contents.