Project Euler 13 - Large numbers
Project Euler 13 - Large numbers
Official link: https://projecteuler.net/problem=13
Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
Official link: https://projecteuler.net/problem=13
Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
Smart way: Keep track of the first 15 digits (to allow some carry over leeway) of each number and sum
Lazy way: Just sum all the numbers and output the first ten digits
Input an integer (yourinput)
Code will output the first yourinput digits of the sum of the 50 numbers