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.

546372

From Esolang
Jump to navigation Jump to search
The title of this article is not correct because of technical limitations. The correct title is actually 546372.

546372 (pronounced "fifty-four, sixty-three, seventy-two") is an esoteric programming language by User:Aadenboy.

The language has a counter that is an unbounded integer starting at one. Each command is a triplet of three numbers Y, B, and G. The program infinitely loops. Each of the three cases are checked in order, with the first applicable case that has an observable effect running.

  1. If the factorization of the counter has Y or less instances of G, skip the next B commands. B and G must be greater than 1. Every prime factor of G is checked.
  2. If the factorization of the counter has B or more instances of Y, multiply the counter by G. Y and G must be greater than 1. Every prime factor of Y is checked.
  3. If the factorization of the counter has G or more distinct prime factors, divide the counter by B, then skip the next Y commands. B must be greater than 1.

Examples

A+B Problem

020032 030027 022 303 042

02 00 32
03 00 27
0 2 2
3 0 3
0 4 2

Computational class

546372 is Turing-complete by translation to multiplicative simple system.

Multiplicative simple system
*SS 546372
Scale by n 20n if n is an integer, otherwise 0m0 where m is the reciprocal of n.
While n is a factor 0ne ......... 0n1 02E, where e is the number of commands in the block, and E is the number of commands outside the block.

See also