Solutions to Project Euler problems in Scala.
Scala Java Shell Perl
Permalink
Failed to load latest commit information.
data Data for 107. Aug 4, 2010
.gitignore Moved eulergen code into shell script. Mar 23, 2013
Euler001.scala Spring cleaning. Feb 27, 2012
Euler002.scala Drive-by brevification. Sep 30, 2013
Euler003.scala Spring cleaning. Feb 27, 2012
Euler004.scala Spring cleaning. Feb 27, 2012
Euler005.scala Spring cleaning. Feb 27, 2012
Euler006.scala Spring cleaning. Feb 27, 2012
Euler007.scala Spring cleaning. Feb 27, 2012
Euler008.scala Spring cleaning. Feb 27, 2012
Euler009.scala Spring cleaning. Feb 27, 2012
Euler010.java More renumbering. Jul 28, 2010
Euler010.scala Avoid clash with Java files. Jul 30, 2014
Euler011.scala Spring cleaning. Feb 27, 2012
Euler012.scala Spring cleaning. Feb 27, 2012
Euler013.scala Spring cleaning. Feb 27, 2012
Euler014.scala Spring cleaning. Feb 27, 2012
Euler015.java More renumbering. Jul 28, 2010
Euler015.scala Avoid clash with Java files. Jul 30, 2014
Euler016.scala Spring cleaning. Feb 27, 2012
Euler017.scala Spring cleaning. Feb 27, 2012
Euler018.scala Spring cleaning. Feb 27, 2012
Euler019.scala Spring cleaning. Feb 27, 2012
Euler020.scala Spring cleaning. Feb 27, 2012
Euler021.scala Spring cleaning. Feb 27, 2012
Euler022.scala Spring cleaning. Feb 27, 2012
Euler023.java More renumbering. Jul 28, 2010
Euler023.scala Avoid clash with Java files. Jul 30, 2014
Euler024.scala Spring cleaning. Feb 27, 2012
Euler025.scala Spring cleaning. Feb 27, 2012
Euler026.java More renumbering. Jul 28, 2010
Euler026.scala Avoid clash with Java files. Jul 30, 2014
Euler027.scala Tidying for Scala 2.10.1. Mar 25, 2013
Euler028.scala Spring cleaning. Feb 27, 2012
Euler029.scala Spring cleaning. Feb 27, 2012
Euler030.scala Spring cleaning. Feb 27, 2012
Euler031.scala Spring cleaning. Feb 27, 2012
Euler032.scala Spring cleaning. Feb 27, 2012
Euler033.scala Spring cleaning. Feb 27, 2012
Euler034.java More renumbering. Jul 28, 2010
Euler034.scala Avoid clash with Java files. Jul 30, 2014
Euler035.scala Spring cleaning. Feb 27, 2012
Euler036.scala Spring cleaning. Feb 27, 2012
Euler037.scala Tidying for Scala 2.10.1. Mar 25, 2013
Euler038.scala Spring cleaning. Feb 27, 2012
Euler039.scala Spring cleaning. Feb 27, 2012
Euler040.scala Spring cleaning. Feb 27, 2012
Euler041.scala Spring cleaning. Feb 27, 2012
Euler042.scala Spring cleaning. Feb 27, 2012
Euler043.scala Tidying for Scala 2.10.1. Mar 25, 2013
Euler044.scala Spring cleaning. Feb 27, 2012
Euler045.scala Spring cleaning. Feb 27, 2012
Euler046.scala Spring cleaning. Feb 27, 2012
Euler047.scala Spring cleaning. Feb 27, 2012
Euler048.scala Spring cleaning. Feb 27, 2012
Euler049.scala Spring cleaning. Feb 27, 2012
Euler050.scala Tidying for Scala 2.10.1. Mar 25, 2013
Euler051.scala Spring cleaning. Feb 27, 2012
Euler052.scala Spring cleaning. Feb 27, 2012
Euler053.scala Spring cleaning. Feb 27, 2012
Euler054.scala Spring cleaning. Feb 27, 2012
Euler055.scala Spring cleaning. Feb 27, 2012
Euler056.scala Changed class names to match file name zero prefixing. Jul 28, 2010
Euler057.scala Changed class names to match file name zero prefixing. Jul 28, 2010
Euler058.scala Changed class names to match file name zero prefixing. Jul 28, 2010
Euler059.scala Tidying for Scala 2.10.1. Mar 25, 2013
Euler060.scala Tidying for Scala 2.10.1. Mar 25, 2013
Euler061.scala Additional brevity courtesy of Mr Phillips. Jul 29, 2010
Euler062.scala Nixed use of mutation, Scala 2.8ified. Aug 21, 2010
Euler063.scala Ooh, we can do this with streams. Aug 22, 2010
Euler064.scala Cleanup prior to posting. Aug 26, 2010
Euler065.scala Tidied up for blogging. Jan 15, 2011
Euler066.scala Proper solution to 66. Insight courtesy of MathWorld. Jan 15, 2011
Euler067.scala Spring cleaning. Feb 27, 2012
Euler068.scala Spring cleaning. Feb 27, 2012
Euler069.scala Spring cleaning. Feb 27, 2012
Euler070.scala Tidying for Scala 2.10.1. Mar 25, 2013
Euler071.scala Spring cleaning. Feb 27, 2012
Euler072.scala Spring cleaning. Feb 27, 2012
Euler073.scala Spring cleaning. Feb 27, 2012
Euler074.scala Tidying for Scala 2.10.1. Mar 25, 2013
Euler075.scala Tidying for Scala 2.10.1. Mar 25, 2013
Euler076.scala Spring cleaning. Feb 27, 2012
Euler077.scala Spring cleaning. Feb 27, 2012
Euler078.scala Spring cleaning. Feb 27, 2012
Euler079.scala Spring cleaning. Feb 27, 2012
Euler080.scala Spring cleaning. Feb 27, 2012
Euler081.scala Spring cleaning. Feb 27, 2012
Euler082.scala Spring cleaning. Feb 27, 2012
Euler083.scala Spring cleaning. Feb 27, 2012
Euler084.scala Spring cleaning. Feb 27, 2012
Euler085.scala Spring cleaning. Feb 27, 2012
Euler086.scala Spring cleaning. Feb 27, 2012
Euler087.scala Spring cleaning. Feb 27, 2012
Euler088.scala Spring cleaning. Feb 27, 2012
Euler089.scala Spring cleaning. Feb 27, 2012
Euler090.scala Changed class names to match file name zero prefixing. Jul 28, 2010
Euler091.scala Changed class names to match file name zero prefixing. Jul 28, 2010
Euler092.scala Changed class names to match file name zero prefixing. Jul 28, 2010
Euler093.scala Tidying for Scala 2.10.1. Mar 25, 2013
Euler094.scala Changed class names to match file name zero prefixing. Jul 28, 2010
Euler095.scala Changed class names to match file name zero prefixing. Jul 28, 2010
Euler096.scala Tidying for Scala 2.10.1. Mar 25, 2013
Euler097.scala Changed class names to match file name zero prefixing. Jul 28, 2010
Euler098.scala Changed class names to match file name zero prefixing. Jul 28, 2010
Euler099.scala Changed class names to match file name zero prefixing. Jul 28, 2010
Euler100.scala A solution to 100 but which needs further understanding and refinement. Jul 27, 2010
Euler101.scala Further tidying based on tips from paulp. Jul 29, 2010
Euler102.scala Solution for 102. Geometry! Jul 29, 2010
Euler103.scala "Solution" to 103 plus a real search algorithm since the question was… Aug 2, 2010
Euler104.scala A not-very-interesting and not-very-fast solution to 104. Aug 2, 2010
Euler105.scala Solution to 105. Benefited heavily from the (unneeded) work I did for… Aug 2, 2010
Euler106.scala The solution is the sum. Aug 4, 2010
Euler107.scala Various optimizations which bring running time down from ~4 minutes t… Dec 28, 2010
Euler108.scala Spring cleaning. Feb 27, 2012
Euler109.scala Tidying and comment. Jan 14, 2011
Euler110.scala Spring cleaning. Feb 27, 2012
Euler111.scala Solution to 111. It's pretty ugly... Mar 2, 2012
Euler112.scala HOF it up, for kicks. Mar 18, 2012
Euler113.scala Counting (with memoization) solution to 113. Mar 18, 2012
Euler114.scala Solution to 114. Much simplified from 115. :) Mar 20, 2012
Euler115.scala Solution to 115. Mar 18, 2012
Euler116.scala Simplified. Aug 22, 2012
Euler117.scala Solution to 117. Aug 22, 2012
Euler118.scala A poor, but somewhat documented solution to Euler118. Mar 25, 2013
Euler119.scala Solution to 119. Mar 30, 2013
Euler120.scala Solutions to 120 and 121. Apr 1, 2013
Euler121.scala Solutions to 120 and 121. Apr 1, 2013
Euler122.scala Solution for 122. Jul 30, 2014
Euler123.scala More math and the code basically goes away. Aug 1, 2014
EulerApp.scala Accum to an array buffer then toSeq at the end. Way faster. Mar 25, 2013
README.rst Point to blog archives, as I no longer have an euler category. Mar 18, 2012
blog.pl Generate new blog format. Apr 1, 2013
build.sbt New Scala! Jul 30, 2014
compilerun.sh Put our classes in SBT's build directory. Apr 1, 2013
eulergen.sh Moved eulergen code into shell script. Mar 23, 2013
pom.xml A POM to so Scaled can grok things. Jul 30, 2014

README.rst

Herein lie solutions to Project Euler written in Scala. Begone from here if you wish to some day savor the satisfaction of constructing solutions to these problems yourself from naught but the whole cloth of your mind.

The value in these solutions, if any is to be had, is probably in reading the code. You can conveniently do this directly via Github. However, if you possess the urge to execute these solutions, a convenient script exists to do so. For example:

% ./compilerun.sh 25

If you've read this far, you may also be interested in my discussion of said solutions here:

http://samskivert.com/blog/

Discussion seems to perpetually lag behind code by forty problems or so, but maybe some day I'll catch up.