Solution for the problem 5
Solution for the problem 16
Solution for the problem 4
Use IntStream.rangeClosed() instead of .range()