Linked Questions

10 votes
40 answers

Output endless powers of 2 [duplicate]

In any programming language, make a program that outputs infinite subsequent powers of two, starting at any power of two with finite integer exponent. There does not need to be a seperator between ...
Dadsdy's user avatar
  • 2,095
1 vote
0 answers

Digit stream with no 42 [duplicate]

You should write a program or function which receives no input and outputs a stream of digits. The stream should contain at least once every positive integer number which does not contain the digit ...
randomra's user avatar
  • 20.9k
551 votes
241 answers

Showcase of Languages

Notes This thread is open and unlocked only because the community decided to make an exception. Please do not use this question as evidence that you can ask similar questions here. Please do not ...
173 votes
495 answers

Implement a Truth-Machine

A truth-machine (credits goes to this guy for coming up with it) is a very simple program designed to demonstrate the I/O and control flow of a language. Here's what a truth-machine does: Gets a ...
a spaghetto's user avatar
  • 11.2k
112 votes
330 answers

Simple cat program

One of the most common standard tasks (especially when showcasing esoteric programming languages) is to implement a "cat program": read all of STDIN and print it to STDOUT. While this is named after ...
Martin Ender's user avatar
171 votes
169 answers

Don't google "google"

We all know that if you google the word "google" it will break the internet. Your task is to create a function that accepts one string and returns its length, in the fewest possible Unicode ...
rybo111's user avatar
  • 4,567
67 votes
165 answers

Print all integers

Write a program or function which will provably print all integers exactly once given infinite time and memory. Possible outputs could be: ...
Fatalize's user avatar
  • 38.9k
54 votes
85 answers

Output Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo

Challenge The goal is to output Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo. Context. (Maybe another interesting challenge could be printing all ...
Orangutan's user avatar
  • 737
111 votes
33 answers

If a program terminates and there is no one to see it, does it halt?

It's time to face the truth: We will not be here forever, but at least we can write a program that will outlive the human race even if it struggles till the end of time. Your task is to write a ...
kb_sou's user avatar
  • 1,087
97 votes
15 answers

Create a programming language that only appears to be unusable

Robbers' challenge thread is here. Cops' challenge: Design a programming language that appears to be unusable for programming, but admits computation (or at least completion of the task) through some ...
feersum's user avatar
  • 31.4k
49 votes
22 answers

Print out all IPv6 addresses

This reminds me when a few years ago someone uploaded a torrent "Hacker tool: complete list of all IP addresses". This was, of course, just a generated list of the ~4 billion IPv4 addresses, ...
Gilles 'SO- stop being evil''s user avatar
17 votes
43 answers

Shortest code to produce infinite non-periodic output

Not a dupe to this. That question asks specifically for counting up forever, while this question allows many other approaches. Write a program or function which, given infinite time and memory, would ...
InQβ's user avatar
  • 391
17 votes
25 answers

Random CSS Color code

This blog post about generating random CSS color codes in JavaScript have multiple solutions for generating a random color in JavaScript. The shortest I can find is this: ...
Mohsen's user avatar
  • 825
37 votes
13 answers

Print, Increment, Decrement, Alias - Interpret Prindeal

Prindeal (pronounced prin-dee-al) is a new esoteric programming language that only has four commands: print, increment, decrement, and alias. Despite its minimalism, complex mathematical operations ...
Calvin's Hobbies's user avatar
30 votes
4 answers

Orientation Oriented Programming

Write a program for a specific language that in different orientations performs different tasks. Your code should have at least two non-empty lines and at least two non-empty columns and should ...
Dom Hastings's user avatar
  • 23.9k

15 30 50 per page