Result:

135/4

 

PREVPRIME

 

 

Type:

Function

 

Description:

Given an integer, finds the closest prime number smaller than the integer. Like ISPRIME?, it uses

 

a pseudoprime check for large numbers.

Access:

Arithmetic, INTEGER L

 

Input:

An integer or an expression that evaluates to an integer.

Output:

The closest prime number smaller than the integer.

Example:

Find the closest, smaller prime number to 145.

Command:

PREVPRIME(145)

 

Result:

139

 

See also:

ISPRIME?, NEXTPRIME

 

PRLCD

Command

 

Type:

 

Description:

Print LCD Command: Prints a pixel-by-pixel image of the current display (excluding the

 

annunciators).

 

 

The width of the printed image of characters in the display is narrower using PRLCD than using a

 

print command such as PR1. The difference results from the spacing between characters. On the

 

display there is a single blank column between characters, and PRLCD prints this spacing. Print

 

commands such as PR1 print two blank columns between adjacent characters.

Access:

…µPRLCD

 

Flags:

I/O Device (–33), Printing Device (–34), Double-spaced Printing (–37), Linefeed (–38). Flag –38

 

must be clear, I/O Device for Wire (–78). If flag –34 is set, flag –33 must be clear.

Input/Output:

None

 

Example:

The command sequence ERASE DRAW PRLCD clears PICT, plots the current equation, then

 

prints the graphics display.

 

See also:

CR, DELAY, OLDPRT, PRST, PRSTC, PRVAR, PR1

 

 

 

PROMPT

Command

 

Type:

 

Description:

Prompt Command: Displays the contents of “prompt” in the status area, and halts program

 

execution.

 

 

PROMPT is equivalent to 1 DISP 1 FREEZE HALT.

Access:

!°LIN LPROMPT

( °is the left-shift of the Nkey).

Input/Output:

 

 

Level 1/Argument 1

Level 1/Item 1

 

 

 

 

 

 

“prompt”

 

 

 

See also:

CONT, DISP, FREEZE, HALT, INFORM, INPUT, MSGBOX

 

 

 

 

PROMPTSTO

Type: Command

Description: Prompt Command: Creates a variable with the name supplied as an argument, prompts for a value, and stores the value you enter in the variable.

Access: …µPROMPTSTO

3-178 Full Command and Function Reference