New answers tagged code-challenge
1
vote
Magic OEIS formulae (Cops' thread)
A160155, 125 bytes
Offset: 1 (that is, \$f(1) = 1, f(2) = 1, f(3)=6, ...\$)
The decimal expansion of the single real root of \$x^5 - x-1\$, \$1.1673...\$.
Using ...
1
vote
0
votes
The Versatile Integer Printer
not so much 6 "languages" as peculiarities between 6 ways of using awk
...
2
votes
Fewest (distinct) characters for Turing Completeness
Vyxal, 3 characters
`/¢
This answer has been several months in the making. I've spent a lot of time trying to find a 3-character Turing-Complete subset of Vyxal, ...
0
votes
List Sophie Germain primes
Ruby -rprime, 34 bytes, score 58
Prints infinitely and should be able to exceed 2**32 due to native support for large numbers, ...
0
votes
Avoid repeating letters between five simple programs
Ruby -rprime, 398 bytes
I don't know why I decided to try this.
-rprime flag loads the Prime ...
2
votes
Avoid repeating letters between five simple programs
Itr, 83 bytes, no characters repeated between programs
The five programs separated by newlines:
...
3
votes
Repeat your program to print Fibonacci numbers
Lambda calculus (Ben Lynn's Nat), 46 bytes
(\n.n(\px.Sp(BxSB))K(KI)I)\f.(\l.SB(lf)f)\g.KI
Try it online! (Instructions: delete all the code there, copy the body n ...
4
votes
Repeat your program to print Fibonacci numbers
Labyrinth, 14 bytes
#
-(
:
=+{!@
Try it online!
Try it online! (6x)
The "repeat the source" requirement is extremely hard in Labyrinth (maybe easier ...
0
votes
Largest Number Printable
Vyxal D, at least \$42781\underbrace{!!!!!…}_{42781\underbrace{!!!…}_{42781}\$
...
2
votes
Remove vowels without using too many different characters
Itr, 4 distinct characters, 5197 bytes
newlines for readability
...
0
votes
Remove vowels without using too many different characters
Pascal, 35 distinct characters
This complete program requires a processor supporting features of Extended Pascal (as defined by ISO standard 10206), in particular ...
1
vote
Remove vowels without using too many different characters
Vyxal, 18 bitsv2, 2.25 bytes, 2 distinct characters
011110011111001000
Try it Online! (link is to bitstring)
Vyncode FTW! The actual program is encoded as a ...
1
vote
Remove vowels without using too many different characters
Lexurgy, 17 distinct, 28 bytes
a:
{a,e,i,o,u,A,E,I,O,U}=>*
If we didn't have to support uppercase letters, 12 distinct, 18 bytes:
...
0
votes
Remove vowels without using too many different characters
Befunge-98 (PyFunge), 11 distinct characters, 263 bytes
...
1
vote
1
vote
Remove vowels without using too many different characters
Lua, 12 distinct characters, 3245 2924 bytes
...
4
votes
Repeat your program to print Fibonacci numbers
Python 3.8 (pre-release), 41 bytes, not unary solution
for i in(1,a:=0):
i,a=i+a,i or+print(a)#
Try it online!
Top 50 recent answers are included
Related Tags
code-challenge × 895math × 74
string × 70
restricted-source × 70
optimization × 59
source-layout × 48
number × 46
quine × 42
polyglot × 38
compression × 38
kolmogorov-complexity × 36
game × 33
sequence × 31
test-battery × 31
code-golf × 30
busy-beaver × 29
primes × 26
code-generation × 25
ascii-art × 24
cops-and-robbers × 24
combinatorics × 21
graphical-output × 21
fastest-code × 21
sorting × 19
geometry × 17