project_euler.problem_080.sol1

Project Euler Problem 80: https://projecteuler.net/problem=80 Author: Sandeep Gupta Problem statement: For the first one hundred natural numbers, find the total of the digital sums of the first one hundred decimal digits for all the irrational square roots. Time: 5 October 2020, 18:30

Functions

solution(→ int)

To evaluate the sum, Used decimal python module to calculate the decimal

Module Contents

project_euler.problem_080.sol1.solution() int

To evaluate the sum, Used decimal python module to calculate the decimal places up to 100, the most important thing would be take calculate a few extra places for decimal otherwise there will be rounding error.

>>> solution()
40886