Minichan

Topic: I've never programmed before, going to try Project Euler. Anyone want to join in and help?

Anonymous A started this discussion 15 years ago #6,859

Project Euler has exercises to try, it gives you a goal, and you write a script to find the answer. I've never programmed before, but I've heard this is a good place to start.

Anyone else want to help?

Anonymous A (OP) double-posted this 15 years ago, 56 seconds later[^] [v] #120,387

http://projecteuler.net/index.php?section=problems&id=1

> If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

> Find the sum of all the multiples of 3 or 5 below 1000.

I'm going to try this in Python.

Not sure how...

Anonymous B joined in and replied with this 15 years ago, 51 seconds later, 1 minute after the original post[^] [v] #120,389

@OP
I don't give a fuck. I was drinking Sprite when I read your fucking headline.

Anonymous C joined in and replied with this 15 years ago, 4 minutes later, 6 minutes after the original post[^] [v] #120,394

> Warning: mysql_connect() [function.mysql-connect]: User admin_euler already has more than 'max_user_connections' active connections in /home/admin/domains/projecteuler.net/public_html/index_preheader.php on line 54 Could not connect to MySQL

r04r joined in and replied with this 15 years ago, 1 minute later, 8 minutes after the original post[^] [v] #120,395

Seems pretty fun. Going to play around with it a lil'. Really fucking slow site, though.

(Edited 24 seconds later.)

Anonymous C replied with this 15 years ago, 4 minutes later, 13 minutes after the original post[^] [v] #120,400

Image went missing> Parse error: syntax error, unexpected '<' in home/admin/domains/projecteuler.net/php/

r04r replied with this 15 years ago, 5 minutes later, 18 minutes after the original post[^] [v] #120,402

When the pages load it's pretty fun.

My solution for 1: http://pastebin.com/grGxzQ12

Anonymous C replied with this 15 years ago, 3 minutes later, 21 minutes after the original post[^] [v] #120,406

@previous (r04r)
Fun if you're not shit at PHP. :')

Anonymous E joined in and replied with this 15 years ago, 55 seconds later, 22 minutes after the original post[^] [v] #120,407

I'm still learning PHP.

(Edited 23 seconds later.)

r04r replied with this 15 years ago, 13 seconds later, 22 minutes after the original post[^] [v] #120,408

@120,406 (C)
Or any other programming language, really. Just whatever can do mathematics.

Anonymous E replied with this 15 years ago, 53 seconds later, 23 minutes after the original post[^] [v] #120,409

@120,406 (C)

I'm also shit at maths.

r04r replied with this 15 years ago, 4 minutes later, 28 minutes after the original post[^] [v] #120,415

Problem 2: http://pastebin.com/W2DRF3HS

Anonymous F joined in and replied with this 15 years ago, 34 minutes later, 1 hour after the original post[^] [v] #120,453

@previous (r04r)
But the idea is to find an elegant solution, no? Finding and using the relationship between even Finbonacci numbers to predict the next one (any given even Fibonacci is 4 times the previous even one plus the even one before that) would be more in the spirit of the exercise.

(Edited 34 seconds later.)

r04r replied with this 15 years ago, 6 minutes later, 1 hour after the original post[^] [v] #120,463

@previous (F)
The spirit is finding a solution. You're probably right, but I really am lacking care and am too tired to bother about elegance.

I googled around a bit, and most of the solutions posted on the web are "brute-force" solutions.

Also, skipped 3 because fuck primes. Here's 4: http://pastebin.com/nezasQqu
:

Please familiarise yourself with the rules and markup syntax before posting.