Top
Back: modS
Forward: mprimdec_lib
FastBack: lll_lib
FastForward: mprimdec_lib
Up: modstd_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.4.9.3 primeList

Procedure from library modstd.lib (see modstd_lib).

Usage:
primeList(n); (resp. primeList(n,L); )

Return:
the intvec of n greatest primes <= 2147483647 (resp. n greatest primes < L[size(L)] union with L)

Example:
 
LIB "modstd.lib";
intvec L=primeList(10);
size(L);
==> 10
L[size(L)];
==> 2147483477
L=primeList(5,L);
size(L);
==> 15
L[size(L)];
==> 2147483269

Top Back: modS Forward: mprimdec_lib FastBack: lll_lib FastForward: mprimdec_lib Up: modstd_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-0, Mar 2009, generated by texi2html.