4

HPR, 1217 bytes
393 bytes with macros
HPR is an unusable language I created for a challenge here.
It has only five commands, and it's not Turing complete; I was actually surprised that a primality test could be programmed in HPR.
This answer stretches the conditions of input formats a bit, sinc...