Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

1 of 2
Greg Martin
  • 16.7k
  • 4
  • 23
  • 73

Wolfram Language (Mathematica), 82 bytes

StringRiffle[StringJoin/@(CellularAutomaton[30,{{1},0},31]/.{1->"1",0->"."}),"\n"]

Try it online! Gotta have the OG in the house. Note the 30 in this code is precisely why this cellular automaton is called Rule 30!

Greg Martin
  • 16.7k
  • 4
  • 23
  • 73

AltStyle によって変換されたページ (->オリジナル) /