CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 17:06:09 GMT
content-type: text/html; charset=utf-8
cf-ray: 9665f7234e54c1ce-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=275d9f7e-1d1b-4a8f-be00-3bbefec88569; expires=Tue, 28 Jul 2026 17:06:09 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: dd17cfa5-9536-4d01-9aa8-3e260cd73c85
x-worker-origin-response-time: 849000000
x-dns-prefetch-control: off
set-cookie: prov=275d9f7e-1d1b-4a8f-be00-3bbefec88569; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=ByJKVwOokqWlYGbwmMgSYvTC5r.5WHhlMt.DN_QUBXc-1753722369-1.0.1.1-7njBlVcLyJAfY6AaJlr9fPKTMWtSSoDLB200KN72rE.sAJRQAf_rI2bpFeKe1vPtXaK1L5Mk7GqejqnOUkdvTTLJoBp_hD3Yu9YWgMEy1fo; path=/; expires=Mon, 28-Jul-25 17:36:09 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=AyGQVnJPv5xDeg3nPoZJ0MTMZ0X2PoPjidg9LswXvEw-1753722369421-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Hot Linked Questions - Code Golf Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsLinked Questions
49 questions linked to/from Tips for golfing in x86/x64 machine code
203
votes
434
answers
82k
views
1, 2, Fizz, 4, Buzz
Introduction
In our recent effort to collect catalogues of shortest solutions for standard programming exercises, here is PPCG's first ever vanilla FizzBuzz challenge. If you wish to see other ...
71
votes
243
answers
20k
views
Add two numbers
Input: Two integers. Preferably decimal integers, but other forms of numbers can be used. These can be given to the code in standard input, as arguments to the program or function, or as a list.
...
57
votes
170
answers
12k
views
Stay away from zero
Task
Given a non-negative integer n, output 1 if n is 0,...
57
votes
137
answers
20k
views
Is this number evil?
Introduction
In number theory, a number is considered evil if there are an even number of 1's in its binary representation. In today's challenge, you will be identifying whether or not a given number ...
52
votes
92
answers
7k
views
The shortest way to find one unique value when all other values are the same
In this question at Code Review they tried to find the fastest way to return the unique element in an array where all the elements are the same except one. But what is the shortest code that ...
49
votes
90
answers
5k
views
Type uniqchars!
Given a string consisting of printable ASCII chars, produce an output consisting of its unique chars in the original order. In other words, the output is the same as the input except that a char is ...
79
votes
65
answers
9k
views
Is it a Cyclops number? "Nobody" knows!
Task:
Given an integer input, figure out whether or not it is a Cyclops Number.
What is a Cyclops number, you may ask? Well, it's a number whose binary representation only has one ...
67
votes
69
answers
10k
views
The Luhn algorithm for verifying credit card numbers, etc
Challenge
Write the shortest program or function to calculate the Luhn Algorithm for verifying (credit card) numbers.
Luhn algorithm explained
From RosettaCode, this algorithm for the purposes of ...
47
votes
86
answers
9k
views
Greatest Common Divisor
Your task is to compute the greatest common divisor (GCD) of two given integers in as few bytes of code as possible.
You may write a program or function, taking input and returning output via any of ...
45
votes
82
answers
6k
views
Print random integers until 0
You are to write a program which generates random integers between \$0\$ and \$99\$ inclusive, outputting each integer in turn, until \$0\$ is generated. You may choose which single-order random ...
62
votes
38
answers
12k
views
Print the phrase "And she said, 'But that's his.'" using only the alphabet
Print the phrase And she said, 'But that's his.' using only the following characters: ...
34
votes
89
answers
4k
views
Swap the parity
Task
Given a positive integer n, output n+1 if n is odd, and output ...
66
votes
47
answers
6k
views
User Appreciation Challenge #1: Dennis ♦
I got the spontaneous idea of making a series of challenges of users that have helped and continue to help the PPCG community be an enjoyable place for everyone, or maybe just specifically for me. :P
...
60
votes
49
answers
5k
views
How many steps does it take from n to 1 by subtracting the greatest divisor?
Inspired by this question over at Mathematics.
The Problem
Let n be a natural number ≥ 2. Take the biggest divisor of ...
36
votes
68
answers
5k
views
GET your dubs together
On 4chan, a popular game is get. Every post on the site gets a sequential post ID. Since you can't influence or determine them, people try to guess (at least a part of) their own post number, usually ...
Welcome to Code Golf and Coding Challenges Stack Exchange! This is a site for recreational programming competitions, not general programming questions. Challenges must have an objective scoring criterion, and it is highly recommended to first post proposed challenges in the Sandbox.
- The Overflow Blog
-
- Featured on Meta
-
-
Hot Network Questions
- Dynamics from iterated averaging
- Where do I download Trackmania 2020 skins to?
- Reducing the Thickness of a Tikz Clipping Curve
- Randomly distribute objects with a bias in geometry nodes
- Sci-fi novel human-centered, with alien empire using stargates, humans try to avoid overruling
- How to deter wasps from an untreated larch fence
- Partitioning heaps - Why?
- How does one justify the rationality of buying insurance?
- Why does Timor-Leste call itself a "Democratic Republic" despite little apparent Marxist-Leninist ideology?
- What is the grammar of が after an い-adjective?
- Is this a violation of open source?
- Civilian airplanes with inside fuselage jet engines
- Is there a name for the beat in drum and bass that is a distillation of the amen break
- Book recommendations for theistic books about God's existence
- Voltage-Controlled 555 Timer?
- Dative with an unclear governing verb (Plautus : capiti)
- How to extend an MDF shelf?
- Testing Hypotheses with Limited Data in an Ecological Experiment. How do I approach my data?
- Near-future novel where a teacher transfers bodies with an assassin
- Why doesn't the Windows C compiler reuse incoming shadow space in noreturn functions?
- I struggle to draft without editing
- What is the proper course of action when a published paper utilizes my previously published methodology without providing citation?
- Writing a visually-selected couple of files out to a file with an open buffer
- How can I prevent paint peeling at deck railing joints?