Post Reply 
Ulam spiral
08-28-2020, 01:14 PM
Post: #4
RE: Ulam spiral
(08-28-2020 11:09 AM)logoliv Wrote:  Hi all,

Damien's code doesn't work for me in HP Prime Pro app for iOS, nor in HP Prime Virtual Calculator for Windows... I have the last versions in both cases.

When I run the app I obtain the same error message :
"Error: Bad argument type" on "IF isprime(n) THEN"

What am I doing wrong ? Does isprime() function work in emulators programs ?
I'm new to HP Prime and it's my first program, thanks in advance for any help.


Try this: Go into CAS Setup, then make sure that the checkbox at the end of the 3rd line ("Change apparent integers into exact integers") is enabled. No guarantees, but that fixed the problem on my Prime.

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Ulam spiral - Tugdual - 12-22-2013, 09:15 PM
RE: Ulam spiral - Damien - 12-25-2013, 07:09 PM
RE: Ulam spiral - logoliv - 08-28-2020, 11:09 AM
RE: Ulam spiral - Joe Horn - 08-28-2020 01:14 PM
RE: Ulam spiral - logoliv - 08-28-2020, 02:33 PM

User(s) browsing this thread: 1 Guest(s)