Plentiful

Plentiful is a minimal esolanguage based on a simple mechanism: 'multiply by constant once per cycle, then divide by list of integers'. Designed by Keymaker in 2026.

Description of language

The program is a list of at least two integers of which the first is the multiplying constant. The values after the multiplying constant form the list of dividing integers. All the integers must be at least 1. (In a source file the integers are separated by new-lines. There may be empty lines, which have no purpose. A number line should have no other characters than digits [0-9].)

The memory is a single integer of arbitrary size (and larger than 0), initially set to the value of the smallest prime (2).

At the start of a cycle, the memory is multiplied by the constant. Then the memory is divided by each dividing integer, sequentially (their order is the order they are defined in the program input). If a value can divide the memory so that the remainder is 0, then the memory is divided by the value. Each dividing integer either divides the memory or not, and has no other effect on the system. After all the dividing integers are processed, the cycle ends and another cycle begins (at the start of which the memory is multiplied by the constant). The program does not halt. (It would not be difficult to create a variation of the language with a halting condition; for instance halting if the memory is 1 at the end of a cycle.)

The mechanism

In recent years, I have had a lot of exposure to the well-known mechanism of 'if dividable by x, then divide by x and multiply by y'. I have implemented it in one form or other for various Turing-completeness proofs. It is a very useful construct. Thus, perhaps it was only natural that I got thinking of a reversal of sorts; I realized that it is possible to separate the multiplication from the divisibility condition and that only one multiplication per cycle suffices. That only one multiplication value per program suffices... It is curious how the dividing integers just keep dividing the memory (or not, in case it is not dividable by the specific integer), not affecting anything else, and computation happens as the dividing integers sequantially chip away from the information/data blindly and uniformly increased by the multiplying constant at the start of each cycle.

Turing-completeness

Language can be shown Turing-complete via Minsky Machine translation.

Each simulated MM instruction has n-indicator and i-indicator, which are unique primes. Likewise for the registers. The n-indicators signify which instruction will be executed on the cycle (together with i-indicators), and other (never the same) n-indicators mark the instruction that is to be executed on the next cycle.

The Minsky Machine program is modified so that when an instruction that refers to itself (as in, moves state to itself), the instruction will take a detour to a 'move' instruction (not a Minsky Machine instruction, but one part of this translation) which will simply transfer the state back to its origin. The reason this is done is because of the way the system adds and removes data (added at the beginning of a cycle with the multiplying, removed during the cycle by the dividing); the available data at any point is finite and nothing but the multiplying can add another n-identifier. At the start of an instruction's simulation the current instruction is set up by a dividing operation that is able to 'find' two n-identifiers (one left by the previous instruction, one added by the latest multiplication); as the current instruction is set up (by removing all other i-identifiers but the one that is associated with the current instruction), all n-identifiers except for the one(s) that selected the current instruction are still in memory, until they are all removed except for the n-identifier that is used to set the next instruction by the instruction (inc, dec, or move) that is being simulated.

All the data that can be added needs to be encoded in the multiplying constant, and all of it is added on every cycle. The values of the registers are indicated by how many times the primes associated with them can be found in the memory's factorization. As the beginning of each cycle increases each register by one, an instruction for increasing a register removes one instance of all other registers. For decreasing, two instances of the register are removed (or just one if the value of the register is 0). The move instruction keeps registers intact by removing one of each register prime.

Perhaps a simpler (and more low-level technical) explanation can be gathered from my translation document, which is not very well formatted as it was written just for my own use. It may likewise contain illogic, as it is meant to give the general idea (or rather, help to preserve it), not be an actual valid representation of a translation (it is not an actual translation, but explaining the elements of it). The translation program (see below) should provide a valid algorithm for the translation of any MM program with any number of instructions and registers. (The halting instruction is not supported, however.)

Software

plentiful.py - An interpreter in Python. A slowly moving interpreter meant for inspecting the execution instruction by instruction. Keep pressing return to execute the next instruction. To see the current memory state's prime factorization write 'f' and hit return. To quit write 'q' and press return.

mmtoplen.py - A Minsky Machine to Plentiful translator. If given no other arguments than the MM program file, the program outputs the translation in Plentiful format, a list of integers. If given any other argument (such as 'abc') the program will print out the inner translation of the program, the prime factorization of the values with the names associated with the primes (instruction labels, registers, n-identifiers, i-identifiers).

-- Keymaker, 28.11.2026