From fbc3aa7e4f4011e29064f81e410c9ff77e361af5 Mon Sep 17 00:00:00 2001 From: Jonathan Chan Date: Fri, 23 Dec 2016 12:31:03 -0800 Subject: [PATCH] Problem 52 --- 52.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 52.py diff --git a/52.py b/52.py new file mode 100644 index 0000000..ebfe1a0 --- /dev/null +++ b/52.py @@ -0,0 +1,6 @@ +for i in range(125874, 166667, 3): + multiples = map(lambda j: j*i, range(2, 7)) + counters = map(lambda j: sorted(list(str(j))), multiples) + if all(counter == counters[0] for counter in counters): + print i, multiples + break