Permuted multiples: Difference between revisions

Changed to search only among multiples of 3 (see discussion).
(Changed to search only among multiples of 3 (see discussion).)
Line 77:
 
=={{header|Nim}}==
Searching among multiples of 3 between 100102 and 1_000 div 6, 1_0001_002 and 10_000 div 6, 10_00010_002 and 100_000 div 6, etc. (see discussion).
 
<lang Nim>from algorithm import sorted
Line 84:
var start = 100
while true:
for i in start..countup(start + 2, 10 * start div 6, 3):
let digits = sorted($i)
block check:
Anonymous user