Rule:Primer
@RULE Primer
https://conwaylife.com/forums/viewtopic.php?p=24547#p24550
A 10-state rule that supports a 2-cell prime number generator. It uses a similar principle to Dean Hickerson's "Primer" pattern, only 60 times faster. The sieves remove every multiple of each integer, except for that integer.
Calcyman (Adam P. Goucher), 18 May 2009
@TABLE
n_states:10 neighborhood:Moore symmetries:none
- State 0: Empty Space
- State 1: Up spaceship
- State 2: Down spaceship
- State 3: Up spaceship on reflector
- State 4: Down spaceship on reflector
- State 5: Reflector
- State 6: Reflector in initial state
- State 7: NW spaceship
- State 8: E puffer
- State 9: SE puffer
var a={0,1,2,3,4,5,6,7,8,9} var b={0,1,2,3,4,5,6,7,8,9} var c={0,1,2,3,4,5,6,7,8,9} var d={0,1,2,3,4,5,6,7,8,9} var e={0,1,2,3,4,5,6,7,8,9} var f={0,1,2,3,4,5,6,7,8,9} var g={0,1,2,3,4,5,6,7,8,9} var h={0,1,2,3,4,5,6,7,8,9}
var i={2,4} var j={1,3,6}
var k={0,1,2,4,5,6,7,8,9}
0,i,a,b,c,d,e,f,g,2 5,i,a,b,c,d,e,f,g,3 0,a,b,c,d,j,e,f,g,1 5,a,b,c,d,j,e,f,g,4
0,a,b,k,7,c,d,e,f,7
0,9,a,b,c,d,e,f,g,7
8,a,b,c,d,e,f,g,h,5 9,a,b,c,d,e,f,g,h,6 0,9,a,b,c,d,e,f,g,7
0,a,b,c,d,e,f,8,g,8 0,a,b,c,d,e,f,g,9,9
1,a,b,c,d,e,f,g,h,0 2,a,b,c,d,e,f,g,h,0 7,a,b,c,d,e,f,g,h,0
3,a,b,c,d,e,f,g,h,5 4,a,b,c,d,e,f,g,h,5 6,a,b,c,d,e,f,g,h,5
@COLORS
1 255 0 0 2 0 255 0 3 255 128 128 4 128 255 128 5 128 128 128 6 192 192 192 7 128 128 255 8 128 255 255 9 255 255 128