PROJECT EULER · #0569
Prime Mountain Range
A mountain range consists of a line of mountains with slopes of exactly
Tenzing sets out to climb each one in turn, starting from the lowest. At the top of each peak, he looks back and counts how many of the previous peaks he can see. In the example above, the eye-line from the third mountain is drawn in red, showing that he can only see the peak of the second mountain from this viewpoint. Similarly, from the
Let
Also
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.