fork download
  1. : M 10 mod ;
  2. : N
  3. 10000 1001 ?DO
  4. i M i 10 / M i 100 / M i 1000 / M + + +
  5. i over
  6. BEGIN
  7. /mod swap dup 0=
  8. WHILE
  9. drop 2dup = if i . endif
  10. over
  11. REPEAT
  12. 2drop drop
  13. LOOP ;
  14. N
  15.  
Success #stdin #stdout 0s 6836KB
stdin
Standard input is empty
stdout
2401 4913 5832