https://app.codility.com/programmers/lessons/10-prime_and_composite_numbers/peaks  The solution failed in performance test.