Tagged Questions
12
votes
11answers
511 views
Write the shortest self-identifying program (a quine variant)
Write a program that will generate a "true" output iff the input matches the source code of the program, and which generates a "false" output iff the input does not match the source code of the ...
7
votes
1answer
192 views
Cryptographic quine variant
Create a program that prints the MD5 sum of its source in the form:
MD5 sum of my source is: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
No cheating - you can't just read the source file and compute its sum. ...
5
votes
4answers
464 views
Can you Meta Quine?
Similar to other quine puzzles (more specifically, this one), write a program that produces the source for itself.
Here's the new twist: The code produced should NOT be identical to the source. ...
13
votes
2answers
335 views
Create a rotating quine
A rotation of a string is made by splitting a string into two pieces and reversing their order, for example "world! Hello," is a rotation of "Hello, world!". It is possible to create programs that can ...
7
votes
2answers
288 views
Write a third order quine
This challenge is an extension of 'Golf a mutual quine'.
Using three languages of your choice, create a third order Ouroboros program.
That is, in language A, write a program pA which outputs ...
7
votes
8answers
545 views
Interpret your lang, but not yourself?
There are many challenges that say "interpret x", where X is a simple language. In my opinion, that is way top boring. To give all the procrastinating people on the internet something interesting to ...
7
votes
3answers
206 views
Session-Saving Quine
Inspired by this question.
Create a program that prompts the user to store some data, and when the program is quitting, spit out the program itself, except the session data changed.
The user then ...
6
votes
7answers
2k views
Write a self-replicating program.
Write a simple program that copies itself when executed.
Your program should be some kind of executable file on Windows, Linux, etc.., should generate new executable file, which is identical to your ...
12
votes
8answers
698 views
Golf a mutual quine
Using two languages of your choice, write the smallest “mutual quine” you can.
That is, write a program P in language A that outputs the source code for a program Q in language B, such ...
7
votes
4answers
412 views
Code-Golf: Quine Challenge I
Challenge
In this task you have to write a program that will take input
an integer N (-1e9 <= N < 0 && 0 < N
<= +1e9), then compute T = (abs(N) %
M+1),if N is positive ...
7
votes
8answers
1k views
Assembly Language Quine
Write the shortest possible assembly-language quine.
Use any ISA you want, unless it has a print-quine instruction or equivalent. Examples include x86, MIPS, SPARC, MMIX, IBM BAL, MIX, VAX, JVM, ...
20
votes
50answers
2k views
Golf you a quine for great good!
Using your language of choice, golf a quine.
No cheating -- that means that you can't just read the source file and print it. Also, in many languages, an empty file is also a quine: that isn't ...