Problem

Source: First Zhautykov Olympiad 2005, Problem 6

Tags: Vieta, number theory unsolved, number theory



Find all prime numbers $ p,q < 2005$ such that $ q | p^{2} + 8$ and $ p|q^{2} + 8.$