Top
Back: preimage
Forward: primefactors
FastBack: Functions and system variables
FastForward: Control structures
Up: Functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.1.107 prime

Syntax:
prime ( int_expression )
Type:
int
Purpose:
returns the largest prime less than or equal to the argument; returns 2 for all arguments smaller than 3.
Example:
 
See general_lib; int.

Top Back: preimage Forward: primefactors FastBack: Functions and system variables FastForward: Control structures Up: Functions Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-6, Dec 2012, generated by texi2html.