Posts for: #Algorithms

0x0013 - Prime Factorization

In the post “Sieve of Eratosthenes“, I had posted a Java program for the prime sieve. Translating it to Python, I have: The list of primes generated by this sieve could then be used for…

[]

0x0011 - Fibonacci sequence

The Fibonacci sequence in mathematics is the following sequence of numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233 … Representation By definition, the first two terms are 0…

[]

0x000d - Project Euler 011

Problem: In the 20 x 20 grid below, four numbers along a diagonal line have been marked. 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40…

[]