Primepocalypse
Jump to navigation
Jump to search
Primepocalypse is a derivative of Brainpocalypse II by User:ChuckEsoteric08.
Commands
There are two accumulators, called A and B. A is set to 0 and B is set to 1
Command | Description |
---|---|
+ |
Increment A. |
% |
Multpiply B by A and store it in B. A is set to 0. |
_ |
If B is not divisible by A multiply it by A and move command pointer to the start. Else divide B by A. In either case result is stored in B and A is set to 0. |
Computational class
Primepocalypse is Turing-complete since it can simulate numerical version Brainpocalypse II. Before it is translated it should be converted to a version in which cell indexes should be prime numbers. After that it is easy to translate it:
+n
becomes:
+n%
-n
becomes:
+n_
Where
xy
Means that command x
is repeated y
times. As an example here is Brainpocalypse II program which increments counter 2 infinitely
+2 -3 -3
When translated to Primepocalypse it becomes:
++%+++_+++_