Project Euler

NOTE: Links to sev­eral of the source codes were lost dur­ing migra­tion from old provider to current.

Direct from the FAQ itself:

What is Project Euler?

Project Euler is a series of chal­leng­ing mathematical/computer pro­gram­ming prob­lems that will require more than just math­e­mat­i­cal insights to solve. Although math­e­mat­ics will help you arrive at ele­gant and effi­cient meth­ods, the use of a com­puter and pro­gram­ming skills will be required to solve most problems.

The moti­va­tion for start­ing Project Euler, and its con­tin­u­a­tion, is to pro­vide a plat­form for the inquir­ing mind to delve into unfa­mil­iar areas and learn new con­cepts in a fun and recre­ational context

I decided a some­time around the start of May 2008 that it would be worth my while to learn Ruby. A prob­lem I run into with learn­ing new lan­guages is that noth­ing really sticks with­out a task to apply the lan­guage to. For Perl, I applied it towards log pars­ing. For Java, dis­trib­uted sys­tems. And now for Ruby, Project Euler. :)

Listed below are the chal­lenges I have com­pleted along with the Ruby code for each. If I get ambi­tious I’ll resolve the same prob­lems in other lan­guages, C/C++ maybe?

My cur­rent progress can be seen here.

  • Prob­lem 1 Ruby Source
  • Prob­lem 2 Ruby Source
  • Prob­lem 3 Ruby Source
  • Prob­lem 4 Ruby Source
  • Prob­lem 5 Ruby Source
  • Prob­lem 6 Ruby Source
  • Prob­lem 7 Ruby Source
  • Prob­lem 8 Ruby Source
  • Prob­lem 9 Ruby Source
  • Prob­lem 10 Ruby Source
  • Prob­lem 11 Ruby Source
  • Prob­lem 12 Ruby Source
  • Prob­lem 13 Ruby Source
  • Prob­lem 14 Ruby Source
  • Prob­lem 15 Ruby Source
  • Prob­lem 16 Ruby Source
  • Prob­lem 20 Ruby Source
  • Prob­lem 21 Ruby Source
  • Prob­lem 25 Ruby Source
  • Prob­lem 48 Ruby Source
  • Prob­lem 48 Python Source

Leave a Reply