newRPL: Alpha demo 0.9 released [UPDATED 2017-10-25]
|
10-26-2017, 09:05 PM
(This post was last modified: 10-26-2017 10:55 PM by Gilles59.)
Post: #207
|
|||
|
|||
RE: newRPL: Alpha demo 0.9 released [UPDATED 2017-10-25]
Hi,
Here is a program to find the numbers that are equal to the sum of the cubes of their digits New RPL Version : Code: « UserRPL version Code:
An other way en NewRPL : Code: << 0 999 FOR 'n' n DUP ->STR UTF8-> #30h - 3 ^ ΣLIST == n IFT NEXT >> UserRPL with GoferList lib (exact mode only): Code: 0 999 1 Seq « DUP ->STR Chars STR-> 3 ^ Sum == » Filter EDIT : Surprisingly, faster than previous UserRPL in 201 sec. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)