diff options
Diffstat (limited to 'python/36-double_base_palindrome.py')
| -rw-r--r-- | python/36-double_base_palindrome.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/python/36-double_base_palindrome.py b/python/36-double_base_palindrome.py deleted file mode 100644 index 758ad1b..0000000 --- a/python/36-double_base_palindrome.py +++ /dev/null @@ -1,8 +0,0 @@ -# https://projecteuler.net/problem=36 - -sum = 0 -for nb in range(1_000_000): - if str(nb) == str(nb)[::-1] and f'{nb:b}' == f'{nb:b}'[::-1]: - sum += nb - -print(sum) |
