We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
PrimePowers
Jump to navigation
Jump to search
PrimePowers is an esolang where instead of storing data in variables or on a stack it stores it in prime powers using an accumulator.
Commands
| Symbol | Function |
|---|---|
| + | increment accumulator |
| - | decrement accumulator |
| p! | outputs the power the prime p is raised to. (put 1 to output the accumulator) (p!! to output unicode) |
| (< or >)p1 | moves the power p1 is raised to times to the left or right based on what's written. |
| p* | takes in input and puts it in the prime power. |
| p1(= or > or <)p2(CODE) | if p1=p2 or p1>p2 or p1<p2 (depending on what's written) is true then do the code inside parentheses |
| @-p1 | decrements p1's power. (not required i think) |
| @+p1 | increments p1's power. (not required i think) |
| X | halts |
Programs
A+B
@+7 @+7 @+7 @+7 @+7 2* 3* @-2 @+3 5=2(3! X) <7