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.
Prompt
Prompt is a language inspired by the act of vibe coding, and hence made to mock it, therefore the name. Prompt is written as plain English, describing how the program works. Hence, anyone who can speak English can write valid Prompt as long as they use accepted commands.
Examples
Hello World
Print "Hello world!" to the screen and halt.
Fizzbuzz
Define fizz as 1. While fizz is under 100, check if fizz is divisible by 15. If fizz is divisible by 15, print "Fizzbuzz" to the screen. Otherwise, if fizz is divisible by 3, print "Fizz" to the screen. Otherwise, if fizz is divisible by 5, print "Buzz" to the screen. Otherwise, print fizz to the screen. Add 1 to fizz and repeat. Halt.
Cat
Define input as 1. While input does not match 0, put input in input. Then, print input to the screen. Halt.
Fun Video Game
Define game as 0. While input matches game, print input to the screen and add 1 to game. Otherwise, print "Failure!" to the screen and halt.
99 Bottles of Beer
Define bottles as 99. While bottles does not match 0, print bottles and " bottles of beer on the wall," twice. Then, print "Knock one down, spin it around," and subtract 1 to bottles. Otherwise, halt.
Digital Root Calculator
Define number as input. Subtract 1 from number, divide number by 9, find its remainder, and add one. Print number to the screen and halt.
Truth Machine
Define truth as input. If truth matches 0, print 0 and halt. If truth matches 1, print 1 forever.
Infinite Loop
While 0 matches 0, do nothing.
Factorial
Define base as input. Define line as base. While line does not match 0, multiply base by line and subtract one from line. Print base to the screen and halt.
Quine
Print "Print to the screen and halt." to the screen and halt.
Hypotenuse Finder
Define adjacent as input and define opposite as input. Square adjacent and opposite, and add adjacent and opposite together. Define hypotenuse as the square root of adjacent. Print hypotenuse to the screen and halt.