Post History
Japt, 15 14 bytes @§XnÈj}aX+j}a2 Try it or run all test cases @§XnÈj}aX+j}a2 :Implicit input of integer U @ :Function taking an integer X as argument § ...
Answer
#4: Post edited
- # [Japt](https://github.com/ETHproductions/japt), <s>15</s> 14 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- @§XnÈj}aX+j}a2
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=QKdYbshqfWFYK2p9YTI&input=OA)- @§XnÈj}aX+j}a2 :Implicit input of integer U
- @ :Function taking an integer X as argument
- § : Is U <= ...
- Xn : Subtract X from
- È : Function taking an integer as input
- j : Is prime?
- } : End function
- a : Get the first integer that returns true when passed through that function starting at
- X+j : X plus is X prime
- } :End function
- a2 :Get the first integer that returns true when passed through that function starting at 2
- # [Japt](https://github.com/ETHproductions/japt), <s>15</s> 14 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- @§XnÈj}aX+j}a2
- [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=QKdYbshqfWFYK2p9YTI&input=OA) or [run all test cases](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=QKdYbshqfWFYK2p9YTI&input=WzEgMiAzIDQgNSA2IDcgOF0tbQ)
- @§XnÈj}aX+j}a2 :Implicit input of integer U
- @ :Function taking an integer X as argument
- § : Is U <= ...
- Xn : Subtract X from
- È : Function taking an integer as input
- j : Is prime?
- } : End function
- a : Get the first integer that returns true when passed through that function starting at
- X+j : X plus is X prime
- } :End function
- a2 :Get the first integer that returns true when passed through that function starting at 2
#3: Post edited
# [Japt](https://github.com/ETHproductions/japt), 15 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)@§XnÈj}aÒX*j}a2[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=QKdYbshqfWHSWCpqfWEy&input=OA)@§XnÈj}aÒX*j}a2 :Implicit input of integer U@ :Function taking an integer X as argument§ : Is U <= ...Xn : Subtract X fromÈ : Function taking an integer as inputj : Is prime?} : End functiona : Get the first integer that returns true when passed through that function starting atÒ : Negate the bitwise NOT ofX*j : X multiplied by is X prime} :End functiona2 :Get the first integer that returns true when passed through that function starting at 2
- # [Japt](https://github.com/ETHproductions/japt), <s>15</s> 14 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- @§XnÈj}aX+j}a2
- [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=QKdYbshqfWFYK2p9YTI&input=OA)
- @§XnÈj}aX+j}a2 :Implicit input of integer U
- @ :Function taking an integer X as argument
- § : Is U <= ...
- Xn : Subtract X from
- È : Function taking an integer as input
- j : Is prime?
- } : End function
- a : Get the first integer that returns true when passed through that function starting at
- X+j : X plus is X prime
- } :End function
- a2 :Get the first integer that returns true when passed through that function starting at 2
#2: Post edited
- # [Japt](https://github.com/ETHproductions/japt), 15 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- @§XnÈj}aÒX*j}a2
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=QKdYbshqfWHSWCpqfWEy&input=OA)
- # [Japt](https://github.com/ETHproductions/japt), 15 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
- @§XnÈj}aÒX*j}a2
- [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=QKdYbshqfWHSWCpqfWEy&input=OA)
- @§XnÈj}aÒX*j}a2 :Implicit input of integer U
- @ :Function taking an integer X as argument
- § : Is U <= ...
- Xn : Subtract X from
- È : Function taking an integer as input
- j : Is prime?
- } : End function
- a : Get the first integer that returns true when passed through that function starting at
- Ò : Negate the bitwise NOT of
- X*j : X multiplied by is X prime
- } :End function
- a2 :Get the first integer that returns true when passed through that function starting at 2