24-Ruby IV
November 17, 2016
Solved
Bug in Prime?
- November 17, 2016
- 2 replies
- 4379 views
At n=1000 all is OK. At n=5000 - Prime has an error!
What is it?


Valery Ochkov wrote:
Thanks, Werner!
But without Fred's function we have a bug in Prime! In Mathcad 16 all is OK at n=10^5
Yes, its a bug. I could reproduce it.
Not sure what the reason for it could be.
First thought was that it might be a confusion between local X and global X, but using X <-- X in the program first did not change anything.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.