From 1b6b732f813918d74473fb1af5ba0b99cb8d0bea Mon Sep 17 00:00:00 2001 From: Sayan Bandyopadhyay Date: Sun, 7 Jan 2018 14:22:49 +0530 Subject: [PATCH 1/4] Update README.md Added question for new solution --- Project Euler/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Project Euler/README.md b/Project Euler/README.md index 072203a41178..29e3df518dd3 100644 --- a/Project Euler/README.md +++ b/Project Euler/README.md @@ -37,3 +37,5 @@ PROBLEMS: 7. By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime number? + +13. Work out the first ten digits of the sum of the following one-hundred 50-digit numbers. From 9e084da86af9d3fb767c1c4b63b21b263fabe088 Mon Sep 17 00:00:00 2001 From: Sayan Bandyopadhyay Date: Sun, 3 Jun 2018 12:45:55 +0530 Subject: [PATCH 2/4] Revert "Update README.md" This reverts commit 1b6b732f813918d74473fb1af5ba0b99cb8d0bea. --- Project Euler/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/Project Euler/README.md b/Project Euler/README.md index 29e3df518dd3..072203a41178 100644 --- a/Project Euler/README.md +++ b/Project Euler/README.md @@ -37,5 +37,3 @@ PROBLEMS: 7. By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime number? - -13. Work out the first ten digits of the sum of the following one-hundred 50-digit numbers. From 7f411416d19b9ee44cec6616a8c8dea7f66e3b7c Mon Sep 17 00:00:00 2001 From: Sayan Bandyopadhyay Date: Mon, 13 Aug 2018 20:33:55 +0530 Subject: [PATCH 3/4] Sol_16 Easiest Added 3 line code for solving question 16 of Project Euler --- Project Euler/Problem 16/temp.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Project Euler/Problem 16/temp.py diff --git a/Project Euler/Problem 16/temp.py b/Project Euler/Problem 16/temp.py new file mode 100644 index 000000000000..5254ffc2c56b --- /dev/null +++ b/Project Euler/Problem 16/temp.py @@ -0,0 +1,3 @@ +n=int(input()) +for i in range(n): + print(sum([int(i) for i in list(str(2**int(input())))])) \ No newline at end of file From 26b2e60792f19a66dbd7e38f91a5b8febfdbc740 Mon Sep 17 00:00:00 2001 From: Sayan Bandyopadhyay Date: Mon, 13 Aug 2018 20:50:10 +0530 Subject: [PATCH 4/4] Update and rename temp.py to Sol_16 Easy.py --- Project Euler/Problem 16/Sol_16 Easy.py | 2 ++ Project Euler/Problem 16/temp.py | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 Project Euler/Problem 16/Sol_16 Easy.py delete mode 100644 Project Euler/Problem 16/temp.py diff --git a/Project Euler/Problem 16/Sol_16 Easy.py b/Project Euler/Problem 16/Sol_16 Easy.py new file mode 100644 index 000000000000..1fdcb7c93006 --- /dev/null +++ b/Project Euler/Problem 16/Sol_16 Easy.py @@ -0,0 +1,2 @@ +for i in range(int(input())): + print(sum([int(i) for i in list(str(2**int(input())))])) diff --git a/Project Euler/Problem 16/temp.py b/Project Euler/Problem 16/temp.py deleted file mode 100644 index 5254ffc2c56b..000000000000 --- a/Project Euler/Problem 16/temp.py +++ /dev/null @@ -1,3 +0,0 @@ -n=int(input()) -for i in range(n): - print(sum([int(i) for i in list(str(2**int(input())))])) \ No newline at end of file