Problem

Source: 2016 Swedish Mathematical Competition p4

Tags: number theory, Product



Find all prime numbers $p$, for which the number $p + 1$ is equal to the product of all the prime numbers which are smaller than $p$.