Created by Inder J. Taneja
Grow a seed by placing a digit block on its right and the reversed block on its left. Choose how many prime rows to seek and which digits may occur in the added blocks.
A palindromic seed gives palindromic prime rows. With a non-palindromic seed such as 23 or 31, only the added sides are symmetric.
Start with 181. Add block 111 on the right and its reverse on the left; then add block 11 on both sides.
Every row is prime and the whole number reads the same in both directions.
Start with 23. Add block 1 on both sides; then add block 111 on both sides of the new prime.
Every row is prime. The added sides are symmetric, while the center 23 keeps the whole number nonpalindromic.
To reproduce these examples, choose prime seeds, allowed digits 18, maximum block length 5, and 3 prime rows. The generator tests blocks in increasing order and takes the first prime extension at each step. Blue marks the starting seed; gold marks the added digits.