Moved eulergen code into shell script.
Tidying for Scala 2.10.1.
Added foldprimes, reimpled genprimes to use it (and return Seq).
Accum to an array buffer then toSeq at the end. Way faster.
A poor, but somewhat documented solution to Euler118.