Problem

Source: Bulgarian IMO TST 2004, Day 1, Problem 2

Tags: floor function, number theory proposed, number theory



Find all primes $p \ge 3$ such that $p- \lfloor p/q \rfloor q$ is a square-free integer for any prime $q<p$.