P68, P91: Added Java solution.
P46, P47, P407: Tweaked Java solution.
P13, P17, P18, P28, P67: Added Haskell solution.
P4, P29, P57, P63: Tweaked Mathematica solution.