STScI logoSTSDAS Help Pages
listprimes stsdas.analysis.fourier listprimes

NAME · USAGE · DESCRIPTION · PARAMETERS · EXAMPLES · BUGS · SEE_ALSO

NAME

listprimes -- Display the first N prime numbers.

USAGE

listprimes nprimes

DESCRIPTION

This task simply takes an integer value from the user and calculates that number of prime numbers. Output is sent to the users terminal screen (i.e., STDOUT), but can be redirected to a file.

PARAMETERS

nprimes = [integer, min=1]
Number of primes to calculate.

EXAMPLES

1. Calculate the first 105 prime numbers and store them in a file called primes.


     fo> listprimes 105 > primes

BUGS

SEE ALSO

Type "help fourier option=sys" for a higher-level description of the fourier package.


Source Code · Package Help · Search Form · STSDAS

Maintained by the Science Software Group at STScI
This file last updated on 1 May 2009