HP49-50G Willan's formulae to find p(n), the n-th prime number
|
05-18-2024, 10:45 PM
(This post was last modified: 05-18-2024 11:25 PM by Gil.)
Post: #1
|
|||
|
|||
HP49-50G Willan's formulae to find p(n), the n-th prime number
I tried to put, from Wikipedia, Willan's formulae to find p(n), the n-th prime number, on the HP50G.
Code:
For n=1, I get 2, ok For n=2, I get 3, ok For n=3, I get 5, ok For n=4, I get 7, ok For n=5, I get 33! For n=6, I get 65! Could somebody tell me what is wrong in my code above? NB However, the following user RPN code works nicely with the loop instructions FOR... NEXT. Code:
Gil |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)