Tuesday, September 8, 2020

Programming #0022, Project Euler Day 9

Question 19 is:

“How many Sundays fell on the first of the month during the twentieth century (1 Jan 1901 to 31 Dec 2000)?”
My solution backlog is growing. My regrets are mounting.


Sunday, September 6, 2020

Programming #0021, Project Euler Day 8

This is another one I’ll have to come back to at a later date. I get the feeling I know a pretty fast solution but it’ll take a while to write. I’m going to start posting them as text files, which is what I should’ve been doing from day one.

This is question 17:

“If all the numbers from 1 to 1000 (one thousand) inclusive were written out in words, how many letters would be used?”

Click here to go to the solution

Saturday, September 5, 2020

Programming #0020, Project Euler Day 7

Question 16 is: “What is the sum of the digits of the number 21000?”

While I can’t get the solution to this problem in c so easily because of the max integer size: I managed to create a more general solution for smaller integers in some 30 minutes. I’ll return to this problem when I find out some more about memory allocation.

Click here to go to the solution

Friday, September 4, 2020

Programming #0019, Maesgryn Update

Gamedev diary day 17: Set up SDL so that I can start creating a graphical tileset for the game.

Thursday, September 3, 2020

Programming #0018, Project Euler Day 6

Question 14 is:
“Which starting number, under one million, produces the longest [collatz] chain?”

Solution: problem 14