I find the language percentage information (~ Java 57%, Scala 37%, Haskell 5%)[1] a bit scary (and admittedly hilarious), given that I have only serious experience with Java among the three.
I haven't worked with Java in quite a while, but I imagine that it still requires a lot of boilerplate and set up for trivial things in other languages. I'm sure if C were also included it would be the most verbose.
package com.shekhargulati.ninetynine_problems._02_arithmetic;
import java.util.stream.LongStream;
/**
* (**) Determine whether a given integer number is prime.
*/
public class P31 {
public static boolean isPrime(long number) {
return !LongStream.rangeClosed(2, Math.round(Math.sqrt(number))).anyMatch(n -> number % n == 0);
}
} $ find ./java8 -name \*.java | xargs wc -c | tail -1
123903 total
$ find ./scala -name \*.scala | xargs wc -c | tail -1
80516 total
$ find ./haskell -name \*.hs | xargs wc -c | tail -1
11234 total