RSS FEED

Project Euler in maxscript

Recently I've stumbled across the Project Euler website and just skimmed through the problems section and thought to myself it could be nice to give it a try. Now I'm finally not so über-busy so the challenge shall begin. I will try to only use maxscript, while it might be limiting, and see how far I can go with it. Here's a list of the solved problems:

1: Find the sum of all the multiples of 3 or 5 below 1000
2: Find the sum of the even-valued Fibonacci numbers under four million
3: Find the largest prime factor of a number
4: Find the largest palindrome made from the product of two 3-digit numbers
5: Find the smallest positive number that is evenly divisible by all of the numbers from 1 to 20
6: Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum
7: Find the 10001st prime number
8: Find the greatest product of five consecutive digits in a 1000-digit number
9: Find the product of abc of the Pythagorean triplet for which a + b + c = 1000
10: Find the sum of all the primes below two million
11: Find the greatest product of four adjacent numbers in any direction in a 20×20 grid
12: Find the value of the first triangle number to have over five hundred divisors
13: Find the first ten digits of the sum of one-hundred 50-digit numbers
14: Find the starting number of Collatz sequence under one million which produces the longest chain

This Post needs Your Comment!

Return to top