Program Listing:
Program Lines:
(In ALG mode)
Checksum and length: AA7A 6
Checksum and length: 8696 21
Checksum and length: D0B8 87
17–8
Miscellaneous Programs and Equations
This routine displays prime number P .
This routine adds 2 to P .
This routine stores the input value for P .
Tests for even input.
Increments P if input an even number.
Stores 3 in test divisor, D .
This routine tests P to see if it is prime.
Finds the fractional part of P
Tests for a remainder of zero ( not prime).
If the number is not prime, tries next possibility.
Description
D .