tcl.prime Verb: Access/TCL

tcl.prime

Command tcl.prime Verb: Access/TCL
Applicable release versions: AP, R83 3.1
Category TCL (746)
Description calculates the next higher and lower prime number from a given number.

If no number is provided with the command, the program requests it.
Syntax prime {number}
Options
Example
prime 13
13 is a prime number
the next highest prime number is = 17
the next lowest prime number is = 11

prime 14
the next highest prime number is = 17
the next lowest prime number is = 13

prime<return>
PRIME - computes the next greater prime number 

Enter a positive integer = 13<return>
13 is a prime number
the next highest prime number is = 17
the next lowest prime number is = 11
Purpose
Related tcl.create-file