Quantcast
Channel: My Thought Exactly » Math
Browsing all 10 articles
Browse latest View live

Project Euler Problem 5 (PHP)

Problem 5 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 is evenly divisible by all of the numbers...

View Article



Project Euler Problem 6 (PHP)

Problem 6 The sum of the squares of the first ten natural numbers is, 12 + 22 + … + 102 = 385 The square of the sum of the first ten natural numbers is, (1 + 2 + … … Continue reading →

View Article

Project Euler Problem 7 (PHP)

Problem 7 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? Script Execution Time: 1.3918 seconds function...

View Article

Project Euler Problem 8 (PHP)

Problem 8 Find the greatest product of five consecutive digits in the 1000-digit number. 73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843...

View Article

Project Euler Problem 9 (PHP)

Problem 9 A Pythagorean triplet is a set of three natural numbers, a Continue reading →

View Article


Project Euler Problem 10 (PHP)

Problem 10 The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. Script Execution Time: 88.6965 seconds function isPrime($n) { for ($x=2; $x … Continue...

View Article

Project Euler Problem 11 (PHP)

Problem 11 In the 20×20 grid below, four numbers along a diagonal line have been marked in red. 08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 … Continue reading →

View Article

Project Euler Problem 12 (PHP)

Problem 12 The sequence of triangle numbers is generated by adding the natural numbers. So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28. The first ten terms … Continue reading →

View Article


Project Euler Problem 13 (PHP)

Problem 13 Work out the first ten digits of the sum of the following one-hundred 50-digit numbers. 37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538...

View Article


Project Euler Problem 10 – Revisited (PHP)

Problem 10 The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. Script Execution Time: 22.5509 seconds Changes Basically, all math functions went …...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images