Re: THE project euler thread
I haven't been doing these problems lately. I"ll get back to them when I have the time

Re: THE project euler thread
Quote:
Anyhow, just got 20 and 48. ^_^ EDIT: And 18! :razz: Quote:

Re: THE project euler thread
lol I'm reinstalling visual basic for this

Re: THE project euler thread
Quote:
If you ever want to talk to me on irc, just type any form of my name and it'll ping me. 
Re: THE project euler thread
fffffffffffffffffffffffff

Re: THE project euler thread
359 is going to be REALLY tough. 27 minutes in and nobody has solved yet wtf ??
EDIT: GET OWNED !!!!!!!!!!!!!!! 
Re: THE project euler thread
I COMPLETELY forgot about 359 happening today

Re: THE project euler thread
w00t 
Re: THE project euler thread
I obtained the general formula for 359 but idk how to code/program (and 358 too)
): 
Re: THE project euler thread
Learn either Python or C++ (Python is my baby although Ruby is leonid's)  both come in handy depending on the problem.
C++ is better for speed (if I know the problem is going to require ugly bruteforce), but stuff like Python/Ruby is easy to script with. 
Re: THE project euler thread
fffff some of these are getting pretty tough

Re: THE project euler thread
welp
360 is pretty much 353 on steroids 
Re: THE project euler thread
360 ;_;

Re: THE project euler thread

Re: THE project euler thread
Gosh, can anybody give any hint about 360? I made an optimized bruteforce and it's still slow :( Anything I can do is prove that answer is divisible by 6 :(
357,358 and 359 was much simpler. 
Re: THE project euler thread
well this looks like fun :D

Re: THE project euler thread
now I'm level 8 :') (200 problems solved)

Re: THE project euler thread
Quote:

Re: THE project euler thread
awwww yeah 
Re: THE project euler thread
dam nice

Re: THE project euler thread
For the sake of adding to the Project Euler thread, finished 110 so far.

Re: THE project euler thread
Made it from level 10 to level 12 (50 more problems, or 300 total solved)  and that's at a nonstop rate. I got a LOT of easy problems knocked out today (including a few bruteforcers that I've been letting run on my desktop while I work on the laptop). What a rush ;; Taking a break for now. My brain's frazzled and I feel like I've been a slave to this site for eons now. 
Re: THE project euler thread
Congrats Marcus! I haven't have the time to tackle this lately, but I'll change that in the next few days!

Re: THE project euler thread
Some of my solutions suck though.
leonid, remember that question with the 2000x2000 matrix thing? I bruteforced it with squaring ;; One guy had a hilarious solution to... can't remember which problem, but he bruteforced it in 500+ hours in VBA, lmfao. 
Re: THE project euler thread
why have so few people solved 177? looks pretty easy to me
gonna attempt that next I think 
Re: THE project euler thread
I've been working on 177 for like a week. It's hard. It was one of those annoying "lownumbered but crazy" problems like 152 that give a lot of trouble and are hard to get out of the way.
Also the inverse phi one was kinda cool. 
Re: THE project euler thread
Done some work on Project Euler, well on my way to level 3 with 53 problems solved.

Re: THE project euler thread
YEEEEEEEEESSSSSSSSSSSSSS!!!!!!! This was such a hard problem, it's not even funny. ;; 
Re: The Project Euler thread
doot doot doot
procrastinated on this one pretty hard 
Re: The Project Euler thread
starting this right now, have no idea what to expect
edit: (feeling really stupid but) do you need, like, a computer input type program for this. guh 
Re: The Project Euler thread
I haven't started it, but I think you would normally write a program that spits out text into a console and then you copy and paste that as your answer.

Re: The Project Euler thread
Quote:
I usually use either Python or C++ (mostly Python). 
Re: The Project Euler thread
Bam! Oh how I have wanted this badge for so very long 
Re: The Project Euler thread
Almost forgot to post this one:

Re: The Project Euler thread
100 paasento

Re: The Project Euler thread
project euler dominated :o

Re: The Project Euler thread
lucked out getting the Perfection badge just in time... this new one is a doozy.

Re: The Project Euler thread
383 looks easy as ****
EDIT: as of 5:29 i have a formula for T5(5^n) EDIT: as of 5:38 i have a general formula for T5(n)... sorta EDIT: BAM the most coding i did was with spreadsheets and i found the answer about 2 hours from starting work on it 
Re: The Project Euler thread
Haven't even looked at 383 yet... tried 382 for a bit and couldn't solve it, so I took a break, haha.

Re: The Project Euler thread
Decided to try 383. Got a working approach for T5(n) very quickly but I don't think it's scalable yet
EDIT: Figured out T5(5^n) 
Re: The Project Euler thread
I'm working on 383 too. I got a formula for f5(n!) but nothing for T5(n) yet :(

Re: The Project Euler thread
Just gotta knock back 382 and that's that
Not really a fan of recurrencerelation problems but meh 
Re: The Project Euler thread
Weeee, got it  100% again

Re: The Project Euler thread
390 should be ok, but I am fearing 391. it's likely going to be brutal

Re: The Project Euler thread
I've got a program that will solve for M(n) but is not scalable to higher levels
You know it's a tough problem when very few of the usual heavy hitters have solved it, even 24 hours after its release. 
Re: The Project Euler thread
391 solved, back to 100%. That one was tricky.

Re: The Project Euler thread
Until 392..

Re: The Project Euler thread
So I'm teaching myself BASIC and I figure that this would be a good way to learn
Unfortunately, I can't even solve problem 1 because I'm a dumb shit rofl (I could solve on paper, but that'd take forever) There's something wrong with my code. Don't hate, I haven't touched a programming language since high school (so 2008) Some info regarding my code: The a$ was a variable I used to make the code stop during the first ifthen statement. It originally looked like this: Code:
print "Count = "; count 
Re: The Project Euler thread
Shit, I think I know what's wrong with my code. 2 mod 3 would end being 0. So it's adding to addNumber before it should be.

Re: The Project Euler thread
2 mod 3 is 2
(x mod y is the remainder of x / y) PS use Python instead, it's cooler Damn thing doesn't save formatting but w/e 
Re: The Project Euler thread
I am obviously retarded, because I'm still stuck on problem 1. I mirrored that code into BASIC (took me a bit to figure out while loops), and now I'm getting a huge number, literally twice as large as my original code. I downloaded Python though, let's see how that goes.
ugh I can't wait to go back to school rofl edit: python's gay, going back to BASIC 
Re: The Project Euler thread
ur gay

Re: The Project Euler thread
thank you for your help
edit: Took a break from problem 1 and went onto a random problem under 10. Solved 6 after a bit of trouble, I was finding the difference for the first 1000 natural numbers and not 100. Whoops. 
Re: The Project Euler thread
What is your current code for problem 1
and seriously stop using BASIC, aaaaoooogugughghhh 
Re: The Project Euler thread
whats wrong with basic rofl, I download python 2.whatever and wanted to kill the lady making my chai latte.
I'll post my code tonight after I mess with it a bit. 
Re: The Project Euler thread
I actually never touched my code that night...
i touched myself................. 
Re: The Project Euler thread
Anyone else still playing any?
Eagerly awaiting #402 
Re: The Project Euler thread
i started on tuesday. i've got 17 correct answers so far, but i only know a semester's worth of python haha. the problems are starting to get out of my threshold
my account name is lpauley if you can do anything with it 
Re: The Project Euler thread
Quote:
EVERYTHING 
Re: The Project Euler thread
You use friend codes instead of usernames

Re: The Project Euler thread
fuck

Re: The Project Euler thread
74432925402977_edc6e913519320b2bbdef524348d21cc

Re: The Project Euler thread
started this a little while ago (i think registered years ago lol, but never solved anything til just recently), a few days of work and i'm at lvl 2.
probably wont solve much for a couple weeks because finals but some of these are pretty interesting. 
Re: The Project Euler thread
Just stumbled across this thread. I have 38 problems solved. I learned a bit of python for these problems. My problem is that I can often see an easy, brute force solution, but I don't have the math knowhow to get stuff solved in less than a few weeks (or at least such math isn't that intuitive to me). I think it's time to revisit these torturous problems.

Re: The Project Euler thread
Practice makes perfect  the more you solve, the more you'll learn

Re: The Project Euler thread
for all it's worth, here's my friend key: 83532459359302_e704d4c6b1d37a7739410f38da156b2a

Re: The Project Euler thread
So which keywords make python read from a text file? My eyes are buggy from looking though online reference stuff and there's several problems that require it..

Re: The Project Euler thread
You will want to use:
Code:
file = open('/path/to/file') 
Re: The Project Euler thread
just did 96 which was cool since i never really used recursion in a way that was nontrivial before
no idea how you guys do some of the higher numbered ones, highest one i did was 243, which for some reason is many times easier than everything around it, didnt even write any code. edit: got to lvl 3 :) 
Re: The Project Euler thread
brute forced 407 lol
never saw that box at the bottom right before, is that new? or does it pop up when you solve something recent? 
Re: The Project Euler thread
i should get back to solve rest of the problems

Re: The Project Euler thread
This is pretty awesome I'm giving some of these a go

Re: The Project Euler thread
411 wasn't too bad  pretty much an exercise in programming

Re: The Project Euler thread
415... only 3 solvers after 7 and a half hours.
Yeah I can pretty much kiss my 100% goodbye It's been fun, PE :( 
Re: The Project Euler thread
Quote:
Here are some of my crude notes for problem 1, that used logic in stead of programming: 
Re: The Project Euler thread
@Reincarnate use code tag
Code:
while 1: 
Re: The Project Euler thread
Maybe ill try to play around and do some more problems this weekend :) (I haven't touched PE in awhile) . gotta start on my takehome test and other school stuff first though xP

Re: The Project Euler thread
Started doing this in my free time again :3 Just got problem 34 this morning. Problem and code below; any tips that can make me a better programmer or mathematician is greatly appreciated :P
problem: solution: (in Java) EDIT: cool, got another :3 Problem: Solution: 
Re: The Project Euler thread
Learned some jython, and these are all much easier

Re: The Project Euler thread
I'm currently on my lunch break, so I decided that instead of studying for my ethernet and osi model exam tomorrow, I'd delve into powershell.
Had a bit of an issue getting custom scripts to work without having digital signatures, but oh well. this feels very reminiscent of java and maybe you DuDeZ will stop hating me because I'm not using BASIC maybe ??? edit: problem two solved, I was originally incrementing my variables one number at a time but I quickly realized that this would need a variable for every number in the sequence lol 
All times are GMT 5. The time now is 05:40 AM. 
Powered by vBulletin® Version 3.8.1
Copyright ©2000  2022, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution