Miscellaneous Programs and Equations
17–9
File name 33s-English-Manual-040130-Publication(Edition 2).doc Page : 388
Printed Date : 2004/1/30 Size : 13.7 x 21.2 cm
Program Lines:
(In ALG mode)
Description
>
Tests to see whether all possible factors have been tried.
If all factors have been tried, branches to the display
routine.
Calculates the next possible factor,
D
+ 2.
Branches to test potential prime with new factor.
Checksum and length: 161E 57
Flags Used:
None.
Program Instructions:
1.
Key in the program routines; press
Å
when done.
2.
Key in a positive integer greater than 3.
3.
Press
t
P
to run program. Prime number,
P
will be displayed.
4.
To see the next prime number, press
¥
.
Variables Used:
P
Prime value and potential prime values.
D
Divisor used to test the current value of
P
.
Remarks:
No test is made to ensure that the input is greater than 3.
Example:
What is the first prime number after 789
?
What is the next prime number
?
Содержание 33S
Страница 1: ... HP 33s scientific calculator user s manual H HP Part number F2216A 90020 Printed in China Edition 2 ...
Страница 14: ......
Страница 15: ...Part 1 Basic Operation ...
Страница 16: ......
Страница 56: ......
Страница 64: ......
Страница 82: ......
Страница 92: ......
Страница 122: ......
Страница 137: ...Operations with Complex Numbers 9 7 c Ù Adds L1 L2 L3 Converts vector back to polar form displays r θ ...
Страница 138: ......
Страница 157: ...Part 2 Programming ...
Страница 158: ......
Страница 184: ......
Страница 210: ......
Страница 222: ......
Страница 255: ...Mathematics Programs 15 33 y y x x m n New coordinate system Old coordinate system 0 0 x P u y v θ ...
Страница 293: ...Part 3 Appendixes and Reference ...
Страница 294: ......
Страница 324: ......
Страница 348: ......