Top
Back: 5.1.95 preimage
Forward: 5.1.97 print
FastBack: 5. Functions and system variables
FastForward: 6. Tricks and pitfalls
Up: 5.1 Functions
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

5.1.96 prime

Syntax:

prime ( int_expression )

Type:

int

Purpose:

returns the largest prime less then 32004 smaller or equal to the argument;
returns 2 for all arguments smaller than 3.

Example:
 
  prime(32004);
→ 32003
  prime(0);
→ 2
  prime(-1);
→ 2

See general_lib; int.


Top Back: 5.1.95 preimage Forward: 5.1.97 print FastBack: 5. Functions and system variables FastForward: 6. Tricks and pitfalls Up: 5.1 Functions Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.