Home Online Manual
Top
Back: Jacobi
Forward: primL
FastBack:
FastForward:
Up: crypto_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.12.3.7 primList

Procedure from library crypto.lib (see crypto_lib).

Usage:
primList(n);

Return:
the list of all primes <=n

Example:
 
LIB "crypto.lib";
list L=primList(100);
size(L);
==> 25
L[size(L)];
==> 97