changeset 355 | 6af6441034f9 |
354:5dc6c3673f9d | 355:6af6441034f9 |
---|---|
1 d1 = [2,4,6,8] |
|
2 d0 = [0,2,4,6,8] |
|
3 dq = [0, 4, 6] |
|
4 |
|
5 for a in d1: |
|
6 th = a * 1000 |
|
7 for b in d0: |
|
8 hu = b * 100 |
|
9 for c in d0: |
|
10 te = c * 10 |
|
11 for u in dq: |
|
12 n = th + hu + te + u |
|
13 if is_square(n): print n |
|
14 |
|
15 |
|
16 for i in range(46, 94, 2): |
|
17 n = i * i |
|
18 if all_even( n ): print n |
|
19 |