Download  Print this page

HP 35s User Manual Page 279

Scientific calculator.
Hide thumbs

Advertisement

Program Listing:
Program Lines:
(In ALG mode)
  
  
Checksum and length: 2CC5 6
  
  
Checksum and length: EFB2 9
  
  
 
 
 
 
 
 
Checksum and length: EA89 47
  
 
 
  
 
 
 
  
  
 
  
Checksum and length: C6B5 53
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.
Tests to see whether all possible factors have been tried.
If all factors have been tried, branches to the display
routine.
Branches to test potential prime with new factor.
Miscellaneous Programs and Equations
Description
D.
17-9

Advertisement

Table of Contents

   Related Manuals for HP 35s

This manual is also suitable for:

F2215aa - 35s scientific calculator

Comments to this Manuals

Symbols: 0
Latest comments: