21
loading...
This website collects cookies to deliver better user experience
$m
and $n
.$m
having last digit $n
.$m
and $n
._get_divisors
. Given a number, it will return a list of all divisors. Like last weeks task, I only made modest optimizations to perform this quickly.× % 10
) is the second value, and display the number of elements in the list.$ ./ch-1.py 24 2
2
$ ./ch-1.py 30 5
2
$ ./ch-2.py 3 0.1 2 2.5 1
0.1
1
2
2.5
3
$ ./ch-2.pl 3 0.1 2 2.5 1
0.1
1
2
2.5
3