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:
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!
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!