Elementary Cellular Automaton

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

See http://mathworld.wolfram.com/ElementaryCellularAutomaton.html
Given a rule number, output the first 16 steps
of its evolution, as in 2012 IOCCC entry
http://www.ioccc.org/years.html#2012_konno
(but that one took command line argument)

Options

exec is denied

no deadline, the server will not save your submission

Sample input:_

30

Sample output:

               #               
              ###              
             ##  #             
            ## ####            
           ##  #   #           
          ## #### ###          
         ##  #    #  #         
        ## ####  ######        
       ##  #   ###     #       
      ## #### ##  #   ###      
     ##  #    # #### ##  #     
    ## ####  ## #    # ####    
   ##  #   ###  ##  ## #   #   
  ## #### ##  ### ###  ## ###  
 ##  #    # ###   #  ###  #  # 
## ####  ## #  # #####  #######

Sample input:_

109

Sample output:

               #               
############## # ##############
             #####             
############ #   # ############
           ### # ###           
########## # ##### # ##########
         #####   #####         
######## #   # # #   # ########
       ### # ##### # ###       
###### # #####   ##### # ######
     #####   # # #   #####     
#### #   # # ##### # #   # ####
   ### # #####   ##### # ###   
## # #####   # # #   ##### # ##
 #####   # # ##### # #   ##### 
 #   # # #####   ##### # #   # 

Sample input:_

101

Sample output:

               #               
############## # ##############
             ####              
############    # #############
           # ## ##             
########## ## ## # ############
         ## ## ####            
########  ## ##   # ###########
       #   ## # # ##           
###### # #  ###### # ##########
     #####       ####          
####     # #####    # #########
   # ### ##    # ## ##         
## ##  ## # ## ## ## # ########
 ## #   #### ## ## ####        
  ### #    ## ## ##   # #######

Ranking

Python _

RankUserSizeTimeDateStatistics
1leonid1240.11832013/10/09 10:48:030B / 61B / 56B
2hallvabo1280.09642012/10/26 10:52:290B / 72B / 50B
3rolf1700.16252012/12/31 08:16:120B / 77B / 91B

JavaScript _

RankUserSizeTimeDateStatistics
1nn1010.06452012/12/27 17:21:300B / 51B / 49B

J _

RankUserSizeTimeDateStatistics
1I., S.620.09372012/10/20 20:13:400B / 22B / 37B

C _

RankUserSizeTimeDateStatistics
1nn1200.03242012/12/27 17:38:200B / 58B / 61B

Haskell _

RankUserSizeTimeDateStatistics
1henkma1390.04972013/01/03 21:15:100B / 76B / 57B

Brainfuck _

RankUserSizeTimeDateStatistics
1g33k16950.03232013/01/29 15:23:3845B / ?B / ?B

GolfScript _

RankUserSizeTimeDateStatistics
1tails670.64752012/10/28 15:57:510B / 23B / 43B

z80 _

RankUserSizeTimeDateStatistics
1fsystem620.21322012/11/07 01:19:1733B / ?B / ?B

Groovy _

RankUserSizeTimeDateStatistics
1nn1083.59822012/12/27 17:53:160B / 60B / 41B

Language Ranking_

RankLangUserSizeScore
1JI., S.6210000
2z80fsystem6210000
3GolfScripttails679253
4JavaScriptnn1016138
5Groovynn1085740
6Cnn1205166
7Pythonleonid1245000
8Haskellhenkma1394460
9Brainfuckg33k1695365

return top