Made a new program for the HP 11C
|
01-07-2014, 09:21 PM
(This post was last modified: 01-07-2014 09:43 PM by vma.)
Post: #1
|
|||
|
|||
Made a new program for the HP 11C
Hi,
Today I received my HP 11C, which I bought second hand. It is in good condition and works fine! Anyway, here is my frist program (I'm still trying to figure out the programming, but at least it works): Test if number is a prime Put a number in X (display) and run LBL A ([f] [A]). Number is a prime if result is 1 Number is not a prime if result is 0 Code:
Would be nice to have this listed in the almost empty software section for the HP 11C (http://www.hpmuseum.org/software/software.htm), but I don't know who to contact. Have fun! Regards, Vitor PS: I forgot to mention that testing if a number is a prime this way is incredibly slow! The algorithm needs to be improved and the processor is really slow compared with new machines: my TI Nspire CAS will test 100123456789 for prime (it is) in less than one second, while the HP 11C takes several seconds with my program to test if 7 is a prime. This really shows how CPU power has increased over the last 30 years! HP: HP 11C, HP 40, HP 48GX, HP 95LX, HP 200LX CASIO: FX-5000F, FX-880P, FX-9860 Slim, ClassPad 330 TI: TI-74, TI Voyage 200, TI Nspire CAS |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Made a new program for the HP 11C - vma - 01-07-2014 09:21 PM
RE: Made a new program for the HP 11C - kakima - 01-07-2014, 10:06 PM
RE: Made a new program for the HP 11C - vma - 01-08-2014, 09:44 AM
RE: Made a new program for the HP 11C - vma - 01-08-2014, 10:03 AM
RE: Made a new program for the HP 11C - Dieter - 01-08-2014, 06:49 PM
RE: Made a new program for the HP 11C - vma - 01-08-2014, 09:36 PM
RE: Made a new program for the HP 11C - walter b - 01-08-2014, 10:13 PM
RE: Made a new program for the HP 11C - Thomas Klemm - 01-09-2014, 07:22 AM
RE: Made a new program for the HP 11C - Dave Britten - 01-09-2014, 02:16 AM
|
User(s) browsing this thread: 1 Guest(s)