RosettaCodeData/Task/Knuths-algorithm-S/J/knuths-algorithm-s-2.j

20 lines
229 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
run=:3 :0
nl=. conl 1
s3_of_n=. 3 s_of_n_creator
r=. {: s3_of_n"0 i.10
coerase (conl 1)-.nl
r
)
(~.,._1 + #/.~) (i.10),,D=:run"0 i.1e5
2016-12-05 22:15:40 +01:00
0 40119
1 40050
2 40163
3 57996
4 42546
5 40990
6 38680
7 36416
8 33172
9 29868