# Square your peas and queues

What are the last three digits of the largest perfect square that can be expressed as $$p^2+pq+q^2,$$ where $$p$$ and $$q$$ are (positive) prime numbers?

Note: If the last three digits of the number have a leading zero, just ignore it. IE If the sum is 1023, type your answer in as 23.

×