Project Euler in R: Problem 4
Problem 4: Find the largest palindrome made from the product of two 3-digit numbers. Commentary: Believe it or not, I don't have much to say about this problem. There are cuter, more general ways to...
View ArticleProject Euler in R: Problem 5
Problem: What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20? Commentary: This problem again isn't very difficult. Basically we just exploit the existence...
View ArticleProject Euler in R: Problem 6
Problem: Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum. Commentary: I taught a variety of freshman math courses at my university...
View ArticleProject Euler in R: Problem 7
Problem: What is the 10001st prime number? Commentary: So it's finally time to discuss my prime-searching algorithm, as promised back in Problem 5. We will find primes in the following way: 2 and 3 are...
View ArticleProject Euler in R: Problem 8
Problem: Find the greatest product of five consecutive digits in the 1000-digit number. Commentary: So this solution is probably a little non-standard. I've actually got a huge blog post coming up...
View ArticleProject Euler in R: Problem 9
Problem: There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product abc. Commentary: I'm not proud of this solution. Every time I would look at this solution, I just knew...
View ArticleProject Euler in R: Problem 10
Problem: Find the sum of all the primes below two million. Commentary: If you're not careful, this problem can really get you in R. In poking around the internet, there are a few solutions to this...
View ArticleProject Euler in R: Problem 11
Problem: What is the greatest product of four adjacent numbers in any direction (up, down, left, right, or diagonally) in the 20×20 grid? Commentary: Well, it's been a while since I've posted...
View ArticleProject Euler...in LaTeX?
I've been joking for a while now that I was going to start solving project euler problems in LaTeX. Then today I finally did one. So let's talk about solving Project Euler problem number 1 (the easy...
View ArticleProject Euler in LaTeX: Problem 2
I probably won't do any more of these, and I hadn't really planned on even doing this one, but I've been inspired. Apparently some Russians found my first post about doing Project Euler problems in...
View Article
More Pages to Explore .....