How to express $2012$ in terms of three consecutive primes
if you can use each prime number only once ?
Source of this problem you can find on this page .
Closest number to the $2012$ which I managed to express is :$2036$
$2036=509\cdot(503-499)$
P.S.
You can use only elementary operations .
As Thomas has pointed out, if only the four basic arithmetic operations are allowed, then we can't use division: The division can't be the first operation, since there would be no way to get back to an integer afterwards; and it can't be the second operation, since that wouldn't yield an integer if the first operation was multiplication and wouldn't yield $2012$ if the first operation was additive, by Bertrand's postulate.
The two operations can't both be additive because the result would be an odd number. They can also not both be multiplications, since $2012=4\cdot503$, which isn't the product of three consecutive primes. Thus we must have one multiplication and one additive operation. The multiplication must come first since otherwise it would have to be of the form $2\cdot 1006$ or $4\cdot503$, and $1006$ cannot be generated from $3$ and $5$ and $4$ cannot be generated from primes consecutive with $503$. Thus the representation would have to be of the form $pq\pm r$. Again by Bertrand's postulate it suffices to check primes below $2012$.
The following code checks that there is no solution of this form: