Flash Flash Revolution

Flash Flash Revolution (http://www.flashflashrevolution.com/vbz/index.php)
-   Technology (http://www.flashflashrevolution.com/vbz/forumdisplay.php?f=74)
-   -   The Project Euler thread (http://www.flashflashrevolution.com/vbz/showthread.php?t=120818)

Choofers 07-16-2013 07:23 PM

Re: The Project Euler thread
 
got problem 6 with no trouble, started on 14 and I had a working script for it but I think it was optimized terribly because after 15 minutes it still wasn't giving me results

whoops

Choofers 07-19-2013 03:40 PM

Re: The Project Euler thread
 
yeah I brute forced the fuck out of 14

now I'm doing problem 5 and I'm not sure where I'm fucking up, haven't touched arrays in years

edit: talked to one of the instructors, fixed the code and now I'm waiting xd
I really need to get back into math

kaiten123 07-19-2013 05:10 PM

Re: The Project Euler thread
 
Quote:

Originally Posted by Choofers (Post 3941751)
yeah I brute forced the fuck out of 14

now I'm doing problem 5 and I'm not sure where I'm fucking up, haven't touched arrays in years

edit: talked to one of the instructors, fixed the code and now I'm waiting xd
I really need to get back into math

a clever solution to 5 shouldnt require arrays or waiting. the problem is basically asking for a least common multiple, try thinking of efficient ways of finding those. once you have a solution you could punch it into a calculator (or write a bit of code) and have the answer almost instantly.

Arkuski 08-8-2013 12:52 PM

Re: The Project Euler thread
 
Learned Matlab for the past few weeks and now I'm crunching this stuff in Octave

kaiten123 09-3-2013 03:04 PM

Re: The Project Euler thread
 
Decimation :)

klimtkiller 11-29-2013 02:56 PM

Re: The Project Euler thread
 
yay

Reincarnate 11-29-2013 11:08 PM

Re: The Project Euler thread
 
Oh how those green checkmarks make you feel warm and fuzzy inside

Zapmeister 02-2-2014 04:53 PM

Re: The Project Euler thread
 
so today i remembered i had an account on this thing with 26 solved that i hadn't touched in over three years.

up to 60 now, running out of easy ones really fast. let's see how this goes. even if nothing happens it'll probably be a more productive use of my spare time than cookie clicker or messing around with bitcoin faucets

i was the 30000th person to do #38 yay

evanescence_death4ever 02-2-2014 06:25 PM

Re: The Project Euler thread
 
I think...I'm going to start this. O_O Time to fail.

lilylily608 05-12-2014 09:18 PM

Re: The Project Euler thread
 
I will be going in linear order from start to finish!

sweet2kill210 05-15-2014 02:57 PM

Re: The Project Euler thread
 
hmmm, I managed to do the first 5 in python a while back. BUT I will try to get through more later because next semester I'm taking a college class for C++ which I've been wanting to learn for a long time. :)

rushyrulz 05-15-2014 06:50 PM

Re: The Project Euler thread
 
Quote:

Originally Posted by lilylily608 (Post 4134416)
I will be going in linear order from start to finish!

you won't finish sorry.

leonid 05-15-2014 06:56 PM

Re: The Project Euler thread
 
who knows.

Reincarnate 05-15-2014 07:42 PM

Re: The Project Euler thread
 
leonid you have not solved a problem in... almost 900 days.

tear

Guest15937 05-15-2014 10:55 PM

Re: The Project Euler thread
 
I've done about 70 of them, going in order from most solved to least solved.

reuben_tate 05-16-2014 12:07 AM

Re: The Project Euler thread
 
Decided to start doing this again. Going to start from the beginning because I know when I first started my solutions were crap. I used my favorite programming language for this one:


Some actual code:

Code:

/*
* We use the fact that 3+6+9+12+... = 3(1+2+3+..) from which we can
* use the n(n+1)/2 formula for the sum of the first n positve integers
*/
      int a = 999/3; //number of multiples of 3 less than 1000
      int b = 999/5; //number of multiples of 5 less than 1000
      int c = 999/15; //number of multiples of 15 less than 1000
      System.out.println(3*(a)*(a+1)/2+5*(b)*(b+1)/2-15*(c)*(c+1)/2);



reuben_tate 05-16-2014 07:24 AM

Re: The Project Euler thread
 
Ok, screw the whole going in order thing, I'm just going to do problems I haven't done yet haha. This was a nice paper-n-pencil-n-calculator one as well :) Level 1 get.

rushyrulz 05-16-2014 07:36 AM

Re: The Project Euler thread
 
I tend to just brute force everything :/






stargroup100 05-21-2014 12:14 AM

Re: The Project Euler thread
 
Quote:

Originally Posted by rushyrulz (Post 4136121)
I tend to just brute force everything :/
*solution to problem nine*

if you haven't done these kinds of problems with pencil/paper you should try it

the first time you realize how to do it it's quite enlightening and exciting

leonid 05-21-2014 12:18 AM

Re: The Project Euler thread
 
pencil&paper will only get you so far


All times are GMT -5. The time now is 05:08 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution