Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
tasks=: (gap , (,:~ index))@:niven
|
||||
|
||||
gap=: 0 ,~ 2 -~/\ ]
|
||||
index=: i.@:#
|
||||
niven=: I.@:nivenQ@:i.
|
||||
nivenQ=: 0 = (|~ ([: (+/"1) 10&#.^:_1))
|
||||
|
||||
assert 1 0 1 -: nivenQ 10 11 12 NB. demonstrate correct niven test
|
||||
assert 1 = +/ 10 12 E. niven 100 NB. the sublist 10 12 occurs once in niven numbers less than 100
|
||||
assert 0 1 6 90 -: gap 1 2 8 98 NB. show infix swapped subtractions
|
||||
|
|
@ -0,0 +1 @@
|
|||
( ~. ( >./\ ( 2 -~/\ A ) ) )
|
||||
|
|
@ -0,0 +1 @@
|
|||
A
|
||||
Loading…
Add table
Add a link
Reference in a new issue