Problem #7 is one of the many problems on Project Euler which concerns prime numbers. The question reads: Project Euler Problem 7: 10001st prime By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10,001st prime number? As discussed …
Tag Archives: Coding
Project Euler Problem #6:
Problem #6 of Project Euler is yet another example of how having a decent background in math can save you a lot of hassle when solving coding problems. The question reads: Project Euler Problem 6: Sum Square Difference The sum of the squares of the first ten natural numbers is 1^2 + 2^2 + . …
Project Euler Problem #5:
Project Euler Problem #5 is another question that is feasibly do-able by hand but can also be generalized. The problem reads: Project Euler Problem 5: Smallest Multiple 2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smallest positive number that …
Project Euler Problem #4
Today we have Problem #4: The first of many to feature palindromic numbers. A palindrome is defined as a number that reads the same from left to right and from right to left. Unless otherwise specified, the term refers to palindromes in base 10. Here is the statement of this problem: Project Euler Problem 4: …
Project Euler Problem #3
While Problem #2 of Project Euler may have featured the very common Fibonacci numbers, Problem #3 is the first to feature the super common prime numbers. Here is the statement of Problem #3: Project Euler Problem 3: Largest Prime Factor The prime factors of 13195 are 5, 7, 13 and 29. What is the largest …
Project Euler Problem #2
Continuing the beginning stretch of Project Euler problems, we see Problem #2: The first of many questions to feature the Fibonacci sequence. Project Euler Problem #2: Even Fibonacci Numbers Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will …
Project Euler Problem #1:
For those who like math and want to learn a programming language, I can think of no better resource than Project Euler. Project Euler contains a free database of over 600 math problems. While the problems are all technically do-able by hand, it is expected that each will be solved with a computer program. This …