Is there any good documentation on how to program the HP Prime in general? I cannot seem to find a comprehensive guide of sorts.

Additionally, when trying to make a program that finds perfect numbers, I ran into a problem:
This code returns a "Bad Argument" error

Code:

Code:
EXPORT PERFECT()
BEGIN
FOR C FROM 1 TO 9999 DO
IF πLIST(CAS.ifactors(C))==C THEN
PRINT(C);
END;
END;
END;


in line 4, when performed in CAS or home view, a list is returned with "[]" brackets, yet does not return an error, and when {} brackets are used in the program (while not serving the purpose of the program), no error occurs.
Why is this, and how can I fix it?

Edit:
Thank you Kerm for telling me how to use BBCode for posting code segments!
*bump* Do any of our HP Prime users/programmers have some feedback on this? I'm afraid that I've encountered a similar barrier to entry with the language, and thus don't know the answer to jetlego's question.
I found http://www.hpmuseum.org/forum/thread-216.html that I printed off and was able to use the messagebox sample successfully. I haven't had a chance as of yet to progress through more of the tutorial.
Excellent list of up-to-date HP Prime documentation/programming can be found here: http://www.hpmuseum.org/forum/thread-818.html
Thascius wrote:
Excellent list of up-to-date HP Prime documentation/programming can be found here: http://www.hpmuseum.org/forum/thread-818.html
Thank you for sharing that work with us. Don't forget to let them know that we have HP Prime Program Archives here.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement