Select Page

## Project Euler 15: Routes through a 20×20 grid – SOLVED

Project Euler 15 Problem Statement Starting in the top left corner of a 2×2 grid, there are 6 routes (without backtracking) to the bottom right corner. How many routes are there through a 20×20 grid? Solution To add some context to this problem a similar question...

## Project Euler 56: a^b maximum digit sum – SOLVED

Project Euler 56 Problem Statement Considering natural numbers of the form, ab, where a, b < 100, what is the maximum digit sum for all the powers? For example 187 is 612220032 and the digit sum for this power is 18. Solution Python natively supports...

## Project Euler 20: Factorial digit sum – SOLVED

Project Euler 20 Problem Statement n! means n × (n − 1) × … × 3 × 2 × 1 Find the digit sum in the number 100! Solution Python natively supports arbitrary-precision integers and arithmetic with as many digits as necessary to perform a calculation.  100! requires...

## Project Euler 16: Digit sum for a large power of 2 – SOLVED

Project Euler 16 Problem Statement 215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26. What is the digit sum for the number 21000? Solution Python natively supports arbitrary-precision integers and arithmetic with as many digits as necessary to perform a...