Questions tagged [pristine-programming]
For challenges about pristine-programming or requiring that answers be pristine programs.
5
questions
90
votes
23answers
11k views
Programming a Pristine World
Let's define a pristine program as a program that does not have any errors itself but will error if you modify it by removing any contiguous substring of \$N\$ characters, where \$1 \le N < \text{...
16
votes
5answers
642 views
Quining a Pristine World
This challenge is based off of Helka Homba's question Programming a Pristine World. From that question, the definition of a pristine program is:
Let's define a pristine program as a program that ...
86
votes
20answers
7k views
Pristine and Unique Code Bowling
Your challenge is simple: write as long of a pristine program as possible in the language of your choice using only unique bytes. (The full definition of a pristine program, copied from that link, is ...
23
votes
19answers
13k views
99 ways to say “I love you”
Inspired by this blog post.
Write a program that outputs 99 distinct programs (in the same language) that output the string I love you.
How the programs are ...
28
votes
14answers
3k views
Pristine Bit Checking
Write a program/function that takes two integers in the range \$0\$ to \$255\$ inclusive, and returns whether the binary forms of the numbers are exactly one bit different.
For example, \$1\$ and \$...