Steady squares: Difference between revisions
Content added Content deleted
Line 1,979: | Line 1,979: | ||
===Brute force approach=== |
===Brute force approach=== |
||
Numbers are converted into strings to make comparison easier. |
Numbers are converted into strings to make comparison easier. |
||
≪ { } 5 ROT '''FOR''' n |
≪ { 1 } 5 ROT '''FOR''' n |
||
n →STR n SQ →STR |
n →STR n SQ →STR |
||
DUP SIZE 3 PICK SIZE - 1 + OVER SIZE SUB |
DUP SIZE 3 PICK SIZE - 1 + OVER SIZE SUB |