Inder J. Taneja

Prime Chain Generator

grow a prime one digit at a time — left · right · either side · inside · palindrome
Created by Inder J. Taneja

Start from a prime and add one digit at each step. Every new number must be prime. The generator follows every branch to its end and shows the longest chains, exact totals, the records and the whole tree — with exact arithmetic for numbers of any length.

Seed prime — quick pick, or type any prime below
How the prime grows
Digits allowed Extra rule
Chains that end
—
Longest chain
—
Primes grown
—
Largest prime
—
digit added on the lefton the rightinserted insidewrapped aroundevery digit keeps its column, so each chain shows its shape
∑
Pick a seed, choose a mode, click Generate
No tree yet

How it works. The search follows every branch level by level and reports exact totals, the longest chains and where the tree splits most. All arithmetic is exact: primes up to 3.3 × 10²⁴ are proven prime; longer ones pass 13 Miller–Rabin rounds. Examples: from 7, adding on the right ends at 73939133 (8 digits), on the left at 24 digits, on either side at 31 digits. Growing inside never seems to stop — use the limits and Stop.

Inder J. Taneja