Prime number finder HP11C?
|
06-13-2016, 11:09 PM
Post: #2
|
|||
|
|||
RE: Prime number finder HP11C?
.
Hi, jbhp55: (06-13-2016 07:15 PM)jbhp55 Wrote: I am curious to know if it is possible to write a shorter program for the 11C which finds the next prime number. It would help if you first post here your best attempt, then we'll see if it can be improved. There are two possible optimizations for a prime-finder program (or most any program for that matter): a) optimize for size: the shortest program possible but not the fastest one. b) optimize for speed: the fastest program but longer than option (a) above. and of course some compromise: not the shortest but not the fastest either. The HP-11C is indeed a wonderful calculator, I used one while in Africa courtesy of an old friend of mine and it performed flawlessly. I still have it with me to this day, 36+ years later, and it looks and works as new. Again: post your HP-11C program here and we'll see if it can be meaningfully improved. V. . All My Articles & other Materials here: Valentin Albillo's HP Collection |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)