Post Reply 
HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits
08-29-2017, 05:55 PM (This post was last modified: 08-29-2017 05:56 PM by Gerald H.)
Post: #12
RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits
But maybe I'm unfair to Didier, for if this is his programme

Code:

NINTODD

« → N
  « N 5. ≤
    IF
    THEN 0.
    ELSE N 1. - 5.
/ IP NINTODD
    END 10. * 1. +
N 1. - 5. MOD 2. *
+
  »
»

the 49G takes 0.33s for input 50.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 49G Programming Challenge: OEIS A014261, Integers with exclusively Odd Digits - Gerald H - 08-29-2017 05:55 PM



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