# Hexy prime sum

Computer Science Level 4

Let $$\zeta(n)$$ be the largest prime strictly less than $$n$$. Evaluate the sum $\large{\sum_{n=2}^{2500} \zeta(h_n) }$

Details and assumptions

• $$h_n$$ is the $$n$$'th hexagonal number : $$h_n = 2n^2 - n$$
• As a challenge, try not using any external libraries.
×