Numbers divisible by their individual digits, but not by the product of their digits.: Difference between revisions
Numbers divisible by their individual digits, but not by the product of their digits. (view source)
Revision as of 09:42, 9 April 2021
, 3 years ago→{{header|Wren}}: Should start from 1.
(Added Wren) |
m (→{{header|Wren}}: Should start from 1.) |
||
Line 680:
var res = []
for (n in
var digits = Int.digits(n)
if (digits.all { |d| n % d == 0 }) {
|