Welcome
Welcome to dinksoftware

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

Project Euler

Offline application programming with languages such as C, C++, Java, MatLab, Fortran etc...

Project Euler

Postby Dink » Mon Nov 02, 2009 10:55 am

If you don't know what it is, check it out: http://projecteuler.net/

I just solved problems 17 and 79 and have done 17/262 now.

102 is still elusive lol (Holly and I were having trouble with it).
User avatar
Dink
 
Posts: 531
Joined: Sat Jul 11, 2009 9:59 am
Location: Australia

 

Re: Project Euler

Postby Holiverh » Mon Nov 02, 2009 12:05 pm

Dink wrote:If you don't know what it is, check it out: http://projecteuler.net/

I just solved problems 17 and 79 and have done 17/262 now.

102 is still elusive lol (Holly and I were having trouble with it).
Project Euler rocks! Shame i'm so bad at maths...

And as for Dink and I having a hard time... Dink did all the work, i just copy and pasted! :P I have only solved one Problem on my own, and forgot which one that was. :lol:
User avatar
Holiverh
 
Posts: 243
Joined: Sun Jul 12, 2009 10:37 am
Location: East Anglia, UK

Re: Project Euler

Postby Dink » Fri Nov 06, 2009 7:06 am

Problem 12 isn't easy. I am having trouble coming up with an efficient algorithim (I have an algorithim it is just too slow).

Plus, I just realized that BASIC is only using one of my CPU's. It turns out it is not multi-threaded!!!

:ugeek:
User avatar
Dink
 
Posts: 531
Joined: Sat Jul 11, 2009 9:59 am
Location: Australia

Re: Project Euler

Postby Holiverh » Fri Nov 06, 2009 7:31 am

Dink wrote:Problem 12 isn't easy. I am having trouble coming up with an efficient algorithim (I have an algorithim it is just too slow).

Plus, I just realized that BASIC is only using one of my CPU's. It turns out it is not multi-threaded!!!

:ugeek:
If you've got more than 8 consecutive 'if' statements, no it's not very efficient. :P

And not multi-threaded... That's what you get with language implementations made by hobbyists! :P Funnily i was going to suggest threading the program, but then i realised you have no stdlib with support for Threads! :D I started tinkering with threading last night with Python, havent'y really thought of a practical use yet. However i might have another go at my IM server/client again, using threads so the console doesn't block. :)

One tip for optimizing code: Optimize the code! :P Like in Python, use % string formatting instead of + concatenation. Not sure if that would help though, not knowing the language and all. :lol:
User avatar
Holiverh
 
Posts: 243
Joined: Sun Jul 12, 2009 10:37 am
Location: East Anglia, UK


Return to Offline application programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron
suspicion-preferred