Post Reply 
Programming puzzles: processing lists!
06-05-2017, 01:48 PM (This post was last modified: 06-05-2017 01:50 PM by Gilles59.)
Post: #121
RE: Programming puzzles: processing lists!
#16. GoferList

Code:

.
.
.
.
.
.
.
.
.
.
.
.
.
a/

«
 1  
 DO
  1 + DUP 117 *
  ->STR Chars {"0" "8" "8" "2"} Intersect 
 UNTIL SIZE 4. == END
 117 *  
»

b/

«
 1  
 DO
  NEXTPRIME DUP
  ->STR Chars {"1" "3" "4"} Intersect 
 UNTIL SIZE 3. == END
»

c/

«
 1  
 DO
  1 + DUP 3 ^
  ->STR Chars {"6" "4" "0" "9"} Intersect 
 UNTIL SIZE 4. == END
 3 ^ 
»
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming puzzles: processing lists! - Gilles59 - 06-05-2017 01:48 PM



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