// archives

Python

This tag is associated with 131 posts

Project Euler 114 Solution

Count the ways a row measuring fifty units in length could be filled with blocks three units long.

Project Euler 139 Solution

Find how many Pythagorean triangles allow tiling with a perimeter < 100,000,000.

Project Euler 231 Solution

The prime factorisation of binomial coefficients

Project Euler 455 Solution

Powers With Trailing Digits

Project Euler 91 Solution

Right triangles with integer coordinates

Project Euler 301 Solution

Finding Nim positions consisting of heap sizes n, 2n and 3n for n ≤ 230 that result in a losing game.

Panmagic (Pandiagonal) and magic square generation, testing

Magic Squares While working on an idea for maximizing a return on a financial portfolio using magic squares, we though we would share our Python code in case someone else may have some use for it. import string def make_magic_square(n): if n < 1 or n == 2: return False if n % 2 == […]

Project Euler 96 Solution

Solve SuDoku puzzles

Project Euler 90 Solution

An unexpected way of using two cubes to make a square.

SPOJ Problem 1682. Deli Deli (DELI) Solution

Make plurals of English words from the given input