RPL second impressions (HP 28)
|
06-27-2018, 05:11 PM
(This post was last modified: 06-27-2018 05:12 PM by mdunn.)
Post: #12
|
|||
|
|||
RE: RPL second impressions (HP 28)
Enter an odd number ≥5 and it will return the number if prime, or the next prime if not. CONT will return succeeding primes.
I know…it’s a poor program, and should really be two programs, have local variables, etc. It was just an exercise. What were my syntax errors? Writing STO var instead of ‘var’ STO. And not using the correct WHILE syntax. Argh…is there no way to stop the 28 from mangling my nice formatting? Code: ;Prime number checker/generator |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)