Problem

Source: 2001 Moldova MO Grade 11 P5

Tags: number theory



Prove that the sum of the numbers $1,2,\ldots,n$ divides their product if and only if $n+1$ is a composite number.