Skip to main content

New answers tagged

1 vote

Penrose Triangle Codegolf

JRuby + propane, 343 bytes ...
roblogic's user avatar
  • 2,944
0 votes

Looping counter extended

Java (JDK), 88 87 bytes v->{for(int j=1,s=1;;s+=j,j=j%26+1)for(int a=0;a<=s;a++)System.out.write(a<s?j+64:10);} Try it online! -1 byte after a ...
int 21h -- Glory to Ukraine --'s user avatar
1 vote

Looping counter extended

05AB1E, 14 bytes 1[DN>.b×,N₂%>+ Try it online. Or alternatively: AuÞ∞<₂%>.¥>×€, Try it online. Original closed ...
Kevin Cruijssen's user avatar
0 votes

Looping counter extended

Google Sheets, 103 bytes To be entered in A1: =LET(R,LAMBDA(R,a,b,i,l,IF(i=ROWS(A:A),l,R(R,a+b,MOD(b,26)+1,i+1,{l;REPT(CHAR(b+64),a)}))),R(R,1,1,1,)) The formula ...
z..'s user avatar
  • 741
2 votes

Looping counter extended

Python 3, 45 bytes a=b=1 while[print(chr(b+64)*a)]:a+=b;b=b%26+1 A full program that prints forever. Try it online!
Jonathan Allan's user avatar
0 votes

Looping counter extended

C++, 113 bytes #include<iostream> int main(){int i=0,p=1;while(p){std::cout<<std::string(p,char(i%26+65))<<'\n';p+=i%26+1;i++;}} Try it online!
Redz's user avatar
  • 141
0 votes

Looping counter extended

PowerShell Core, 45 bytes for(){([char]($c%26+65)+'')*++$i $i+=$c++%26} Try it online!
Julian's user avatar
  • 3,108
2 votes

Draw the South Korean flag

Chipmunk Basic, 612 603 bytes Latest beta of Chipmunk Basic (v368b2.02) on MacOS. The code is saved to a file korea.bas, then loaded and run from the application ...
roblogic's user avatar
  • 2,944
4 votes

Looping counter extended

Nekomata, 15 bytes Ňr26%→Ɔ64+$∑→řH Attempt This Online! the original challenge, 5 bytes '*ŇPř Attempt This Online! ...
alephalpha's user avatar
  • 48.5k
2 votes

Looping counter extended

Retina 0.8.2, 46 bytes $ @ {2=T`@L`L`(.)\1* }2=`(.)\1* $&$1 }:T`@L`LA Try it online! Explanation: $ @ Append an ...
Neil's user avatar
  • 172k
5 votes

Looping counter extended

Charcoal, 23 bytes W¹«×⊕↨¹⁺¹﹪υ²⁶§αLυD⎚⊞υLυ Try it online! Link is to verbose version of code. Explanation: W¹« Repeat forever. ...
Neil's user avatar
  • 172k
4 votes

Looping counter extended

JavaScript (Node.js), 74 bytes for(i=0,s=1;;s+=i,i%=26)console.log(String.fromCharCode(++i+64).repeat(s)) Try it online! JavaScript (Node.js), 30 bytes ...
l4m2's user avatar
  • 24.5k
1 vote

Looping counter extended

Python 3, 56 bytes a,b=1,0 while 1: print(chr(b%26+65)*a) a+=b%26+1 b+=1 Try it online!
None1's user avatar
  • 1,041
2 votes

Cellular Automata Rule 30

sed, 110 bytes :0 p /^O/b y/.O/_x/ s/.*/_&_/ :1 s/[_x]/&:/ /:__/s/:/_:/ //!s/:/x:/ s/(.)\1:/./ s/..:/O/ /[_x]../b1 s/..$// b0 Try it online!
Jan Blumschein's user avatar
2 votes

Create a Pride Flag

Bash, 98 bytes Happy Pride! -12 bytes by @alephalpha with golfed color codes -4 bytes by me by replacing do...done with {...}. ...
Themoonisacheese's user avatar
1 vote

Create a Pride Flag

Chipmunk Basic, 215 148 bytes Latest beta of Chipmunk Basic (v368b2.02) on MacOS. The code is saved to a file pride.bas, then loaded and run from the application ...
roblogic's user avatar
  • 2,944
1 vote

List of primes under a million

K (ngn/k), 12 bytes `pri(*/6#10) Try it online! ...
C K's user avatar
  • 91
3 votes

Cellular Automata Rule 30

Python 3,  88  87 bytes -1 thanks to Jitse! (Reverse the order, strip leading character at each step to avoid some slice offsets.) I started with boothby,'s answer and tweaked quite a bit... ...
Jonathan Allan's user avatar
1 vote

Cellular Automata Rule 30

Wolfram Language (Mathematica), 71 bytes StringRiffle[CellularAutomaton[30,{{1},0},31]/.{1->"1",0->"."},"\n",""] Try ...
Greg Martin's user avatar
  • 15.8k
1 vote

Cellular Automata Rule 30

Perl 5, 105 bytes @a=(0)x63;$a[31]=1;for$z(1..32){say map$_?O:".",@a;@a=map{($b=join'',@a[$_-1..$_+1])<101&&$b>0||0}0..$#a} Try it online!
Xcali's user avatar
  • 15.3k
2 votes

Cellular Automata Rule 30

05AB1E, 29 25 bytes 31°ÂûsvJDT„O.‡,0.øü3εćsàÊ -4 bytes porting @JonathanAllan's Jelly answer. Try it online. Explanation: ...
Kevin Cruijssen's user avatar
-1 votes

Print a 10 by 10 grid of asterisks

AWK awk 'BEGIN{print$-($_=(_="*****")_)^gsub(/./,RS$_)}' or ...
RARE Kpop Manifesto's user avatar
2 votes

Cellular Automata Rule 30

K (ngn/k), 36 34 bytes -2 bytes thanks to @Jonathan Allan's bit table ".O"@31{~{x=y|z}.+3':0,x,0}\31=!63 Try it online! ...
akamayu's user avatar
  • 511
2 votes

Cellular Automata Rule 30

Retina 0.8.2, 100 69 bytes 2080$*. M!`.{65} 33=`. 0 +s`.(?<=(0\.\.|\.0.|\..0).{65}) 0 .(.+). $1 Try it online! Explanation: ...
Neil's user avatar
  • 172k
7 votes

Cellular Automata Rule 30

Python, 100 byes l='.'*32 l+='O'+l exec("print(l);l=''.join('.O'[f'.{l}.'[i:i+3]in'OO..O.']for i in range(65));"*33)
boothby's user avatar
  • 9,856
1 vote

Cellular Automata Rule 30

Charcoal, 32 bytes UB.׳¹ψ0F³¹«⸿F⁶³℅↔⁻℅§KM⁰℅⌈✂KM¹¦³ Try it online! Link is to verbose version of code. Explanation: UB. Set ...
Neil's user avatar
  • 172k
4 votes

Cellular Automata Rule 30

Jelly,  22  21 bytes 32ṬŒḄØ0jḢ⁻ṀƊ3ƤƊƬḣị⁾O. A niladic Link that yields a list of lines. Try it online! How? ...
Jonathan Allan's user avatar
2 votes

Cellular Automata Rule 30

APL+WIN, 120 bytes m←32 63⍴0 m[0;62]←1 :for i :in 1+⍳31 n←m[i-1;] :for j :in ⍳63 m[i;j]←(↑v)≠(↑1↓v)∨¯1↑v←3↑n n←1↓n :end :end '.o'[(⌽⍳32)⌽m] Try it online! Thanks ...
Graham's user avatar
  • 6,286
2 votes

Cellular Automata Rule 30

JavaScript (ES11), 84 bytes ...
Arnauld's user avatar
  • 193k
10 votes

Cellular Automata Rule 30

Google Sheets, 171 bytes ...
z..'s user avatar
  • 741
1 vote

"Hello, World!"

Emmental, 68 61 54 bytes -7 bytes thanks to @Adelie!-7 bytes thanks to @Adelie! #72.#101.#108::..#111^.#44.#32^.#87.v.#114..#100.v#1+. Try it online! All I know is ...
CrSb0001's user avatar
  • 411
0 votes

Print a 10 by 10 grid of asterisks

Arturo, 27 bytes 10|loop=>[repeat{*}10print] Try it!
chunes's user avatar
  • 24.6k
1 vote

"Hello, World!"

ACCUMULATOR, 103 102 bytes -1 bytes from @SanguineL ACMMMMCMMMMMURACMMCAAUAAAAAAAUUAAAURAAAACURAAACMURACMMMCMURACMMCAAAAAAAAAAAAUAAAUMMMMMMURACMMCAURAAACU Follow ...
Adelie's user avatar
  • 151
0 votes

Draw the national flag of Iceland

Uiua, 51 bytes ≡▽9▽9÷99⟨0_28_87|+99⊚3|⊂84⊟.16⟩↻9_¯9↧2⊞↧∩↧∩⟜⇌⇡18⇡25 Try it online! In 0..18 and 0..25, take the minimum of each with the reversed range, then take ...
noodle person's user avatar
2 votes

"Hello, World!"

Clarity, 16 bytes Source: "Hello, World!" Output: Hello, World! Try it online! Works in the Clarity console, outputs ...
matronator's user avatar
1 vote

"Hello, World!"

ACCUMULATOR, 134 bytes I spent 10 minutes on this. ...
SectorCorruptor's user avatar
1 vote

List of primes under a million

AWK, 58 bytes {for(;i++<$0;){for(j=x=1;j<i;)i%++j?J:x++;if(2~x)print i}} Try it online! Will work for arbitrary amount: ...
C K's user avatar
  • 91
0 votes

Print the Christmas alphabet

Arturo, 24 bytes print join--@`a`..`z``l` Try it!
chunes's user avatar
  • 24.6k
1 vote

Print the Christmas alphabet

JavaScript, 67 bytes _=>Array.from({length:25},(_,x)=>(x+10+(x>10)).toString(36)).join`` Try it online!
darrylyeo's user avatar
  • 7,897
0 votes

Print the Christmas alphabet

Nibbles, 9 nibbles (4.5 bytes) -|@\$u"L" Attempt This Online! Explanation Inspired by Mike Bufardeci's Nibbles answer, but since most of it is different ...
DLosc's user avatar
  • 39.6k
0 votes

Print the Christmas alphabet

brainfuck, 186 162 bytes -24 bytes from managing data a little bit better ...
madeforlosers's user avatar
3 votes

"Hello, World!"

Lazy K, 555 bytes ...
Esolanging Fruit's user avatar
3 votes

"Hello, World!"

AWK, 18 bytes $0="Hello, World!" Try it online! AWK defaults to {print $0}. Pass/pipe this anything and it will just print "Hello, World!". <...
C K's user avatar
  • 91
3 votes

"Hello, World!"

Befalse (quirkster), 22 bytes "!dlroW ,olleH"::::..; Try it! (Usage: copy-paste into the code box, click Show above it, and then Run.) So this is the ...
Bubbler's user avatar
  • 76.9k
1 vote

In Honor of Adam West

Acc!!, 213 bytes ...
engineer gaming's user avatar
1 vote

Print a 10 by 10 grid of asterisks

+Output, 19 12 bytes Note: +Output is an extension to -Output, both of which are languages I made. "*"a*aU+a*oX Explanation: This language revolves ...
Evylah's user avatar
  • 31
2 votes

Print a 10 by 10 grid of asterisks

Civet, 33 bytes console.log '**********'for[0..9] Compiles to this JS: ...
Bbrk24's user avatar
  • 2,873
1 vote

Print a 10 by 10 grid of asterisks

Acc!!, 48 bytes Count i while i-110 { Write 42-32*0^((i+1)%11) } Try it online!
engineer gaming's user avatar

Top 50 recent answers are included