/-.p

The repo for the +.p programming language

Primary LanguagePython

+.p

The repo for the +.p programming language.

Commands

This language only has 3 commands.

+

Pushes the sum of the last two numbers of the stack onto the stack.

p

Pushes the number 1 onto the stack if the last number on the stack is prime, pushes the number 0 otherwise.

.

Removes the first item of the stack and pushes it onto the stack.

IO

Input

Input must be given as numbers seperated as commas. Input is implicit.

Output

Output is implicit and always outputs the last number on the stack.

Run

Download the compiler script and run it.