Skip to main content

Questions tagged [code-golf]

7 votes
1 answer
476 views

A001422 gives the whole set of 31 numbers which are not the sum of distinct squares (see also MathWorld). That article also provides code for it: ...
Vitaliy Kaurov's user avatar
27 votes
7 answers
5k views

The following code creates the Yin Yang symbol ...
nilo de roock's user avatar
6 votes
2 answers
430 views

This question is closely related to questions 83720, 17460, and 11298. How would you write the operator F = Through[#1[#2]] & in the prettiest, fastest, or ...
Roman's user avatar
  • 51.3k
16 votes
2 answers
1k views

Bresenham's line drawing algorithm is usually implemented via loops. But in Mathematica we can take advantage of its ability to solve Diophantine equations. From educational viewpoint it is quite ...
Alexey Popkov's user avatar
7 votes
1 answer
624 views

We all know a conspicuous member of our community got hitched recently. As most of us are not in Malta, and weren't able to fly there, I thought of a celebration question. Sort of. The challenge is ...
Dr. belisarius's user avatar