Problem

Source: Moldova TST 2021

Tags: number theory, prime numbers



Prove that if $p$ and $q$ are two prime numbers, such that $$p+p^2+p^3+...+p^q=q+q^2+q^3+...+q^p,$$then $p=q$.