// archives

Python

This tag is associated with 157 posts

Project Euler 112 Solution

Investigating the density of “bouncy” numbers.

Project Euler 135 Solution

Determining the number of solutions of the equation x2 − y2 − z2 = n.

Project Euler 104 Solution

Find Fibonacci numbers for which the first and last nine digits are pandigital.

Common Functions and Routines for Project Euler

Common functions and helpful tools used to solve problems in Project Euler: Downloadable source: Euler.py source A set of routines used to help solve math problems. Euler.py is included as needed. The example below shows typical Python usage: from Euler import is_prime, is_perm Here is the contents of Euler.py from math import sqrt, ceil import […]

Project Euler 121 Solution

Investigate the game of chance involving colored discs.

Project Euler 1 Solution

Find the sum of all the natural numbers that are multiples of 3 or 5 using the inclusion-exclusion principal.

Project Euler 2 Solution

Find the sum of all the even-valued terms in the Fibonacci sequence which do not exceed 4 million.

Project Euler 3 Solution

Find the largest prime factor of a composite number.

Project Euler 4 Solution

Find the largest palindrome made from the product of two 3-digit numbers.

Project Euler 5 Solution

Find the smallest number divisible by each of the numbers 1 to 20.