Post Reply 
[HP35s] Program for prime number (Wheel Sieve and Miller-Rabin)
02-13-2019, 07:20 PM
Post: #12
RE: [HP35s] Hello and program for prime number
(02-13-2019 04:44 PM)fred_76 Wrote:  In line 92, what is "A-1" ? How do you get this ?

Not sure if I remember that correctly but this looks like an equation.
So you would enter it:

[EQN]
[RCL] A
- 1
[C]

And since that's probably the next question, you can use [STO] to store intermediate results in a variable which is indicated by ►:
Code:
182    C+1►C

This increments variable C.

But I haven't used my HP-35s for some time and right now the batteries are dead so I can't verify.
In the manual check chapter 6: "Entering and Evaluating Equations".

HTH
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [HP35s] Hello and program for prime number - Thomas Klemm - 02-13-2019 07:20 PM



User(s) browsing this thread: 1 Guest(s)