RosettaCodeData/Task/Arithmetic-numbers/J/arithmetic-numbers-1.j

3 lines
84 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
factors=: {{ */@>,{(^ [:i.1+])&.>/__ q:y}}
isArith=: {{ (= <.) (+/%#) factors|y}}"0