diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-01-15 13:45:26 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-01-15 13:45:26 +0100 |
| commit | 3c4d885ba7fd25731c030813888b6e3285ed7c2a (patch) | |
| tree | f981a050c9ab51b3ab9cbc46beb8c2b1aeff0377 /python | |
| parent | 56ea34050959bbd97e6aae9fe8f2d865efb43a48 (diff) | |
| download | project_euler-3c4d885ba7fd25731c030813888b6e3285ed7c2a.tar.gz project_euler-3c4d885ba7fd25731c030813888b6e3285ed7c2a.tar.bz2 project_euler-3c4d885ba7fd25731c030813888b6e3285ed7c2a.zip | |
problem 206 in c
Diffstat (limited to 'python')
| -rw-r--r-- | python/206-concealed_square.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/python/206-concealed_square.py b/python/206-concealed_square.py deleted file mode 100644 index e9d84ea..0000000 --- a/python/206-concealed_square.py +++ /dev/null @@ -1,18 +0,0 @@ -# ### -#Concealed Square -# -# Problem 206 -# Find the unique positive integer whose square has the form 1_2_3_4_5_6_7_8_9_0, -# where each “_” is a single digit. -# ### - - -import math -from itertools import count - - -for n in count(int(math.sqrt(1020304050607080900)) - 1): - s = str(n * n) - if s[0] == "1" and s[2] == "2" and s[4] == "3" and s[6] == "4" and s[8] == "5" and s[10] == "6" and s[12] == "7" and s[14] == "8" and s[16] == "9" and s[18] == "0": - print(">>>", n) - break |
