Yagel Numbers in the OEIS

In the On-Line Encyclopedia of Integer Sequences since October 2026

A400659

The first prime in every row of the grid: for each order k, the least exponent n at which Yk(n) is prime.

The OEIS entry →  ·  All 100 terms (b-file)  ·  Re-prove every term yourself →

The OEIS is the reference database of integer sequences. Sequence A400659 follows the grid Yk(n)=pk−1#⋅pkn−1 across its rows: it records where each row reaches its first prime. The first terms are 2, 1, 1, 3, 1, 1, 2, 5, 5, 4, 16, 4, 1, 12, 9, …

Mind the letters. In an OEIS entry n is always the index of the sequence, so the entry writes the order as n and the exponent as k: a(n) is the least k≥1 such that A002110(n−1)⋅prime(n)k−1 is prime. This site and the paper use the opposite letters, with k the order and n the exponent. Below, a(k) is the least n with Yk(n) prime.

Every term, proved

Each prime in the table is proved, not screened. Every smaller exponent of its row has an explicit compositeness witness, and the prime itself passes a Lucas N+1 test, which applies because N+1=pk−1#⋅pkn is completely factored by construction. The verification page gives two self-contained programs, in PARI/GP and in Python, that re-prove all 100 terms on your own computer without any data from this site. Click a prime to compute its exact value on the datasets page.

order k a(k) first prime of the row digits
122² − 11
21p₁#·3¹ − 11
31p₂#·5¹ − 12
43p₃#·7³ − 15
51p₄#·11¹ − 14
61p₅#·13¹ − 15
72p₆#·17² − 17
85p₇#·19⁵ − 113
95p₈#·23⁵ − 114
104p₉#·29⁴ − 115
1116p₁₀#·31¹⁶ − 134
124p₁₁#·37⁴ − 118
131p₁₂#·41¹ − 115
1412p₁₃#·43¹² − 135
159p₁₄#·47⁹ − 132
162p₁₅#·53² − 122
175p₁₆#·59⁵ − 129
183p₁₇#·61³ − 127
196p₁₈#·67⁶ − 135
202p₁₉#·71² − 129
2134p₂₀#·73³⁴ − 191
223p₂₁#·79³ − 135
232p₂₂#·83² − 135
241p₂₃#·89¹ − 135
256p₂₄#·97⁶ − 147
2665p₂₅#·101⁶⁵ − 1167
273p₂₆#·103³ − 145
285p₂₇#·107⁵ − 151
296p₂₈#·109⁶ − 155
303p₂₉#·113³ − 151
31229p₃₀#·127²²⁹ − 1529
3211p₃₁#·131¹¹ − 172
3317p₃₂#·137¹⁷ − 188
345p₃₃#·139⁵ − 164
357p₃₄#·149⁷ − 171
3616p₃₅#·151¹⁶ − 193
3719p₃₆#·157¹⁹ − 1102
3815p₃₇#·163¹⁵ − 195
3946p₃₈#·167⁴⁶ − 1167
4011p₃₉#·173¹¹ − 191
4114p₄₀#·179¹⁴ − 1100
4220p₄₁#·181²⁰ − 1116
4310p₄₂#·191¹⁰ − 196
44207p₄₃#·193²⁰⁷ − 1549
4512p₄₄#·197¹² − 1105
4612p₄₅#·199¹² − 1108
4732p₄₆#·211³² − 1157
4863p₄₇#·223⁶³ − 1233
496p₄₈#·227⁶ − 1101
5093p₄₉#·229⁹³ − 1309
514p₅₀#·233⁴ − 1101
5216p₅₁#·239¹⁶ − 1132
5396p₅₂#·241⁹⁶ − 1325
545p₅₃#·251⁵ − 1111
555p₅₄#·257⁵ − 1113
56329p₅₅#·263³²⁹ − 1900
57172p₅₆#·269¹⁷² − 1524
5834p₅₇#·271³⁴ − 1191
5968p₅₈#·277⁶⁸ − 1277
604p₅₉#·281⁴ − 1123
61395p₆₀#·283³⁹⁵ − 11,084
62150p₆₁#·293¹⁵⁰ − 1488
6320p₆₂#·307²⁰ − 1171
642p₆₃#·311² − 1128
6520p₆₄#·313²⁰ − 1176
661p₆₅#·317¹ − 1131
6754p₆₆#·331⁵⁴ − 1267
681p₆₇#·337¹ − 1136
69106p₆₈#·347¹⁰⁶ − 1405
705p₆₉#·349⁵ − 1151
71103p₇₀#·353¹⁰³ − 1403
7211p₇₁#·359¹¹ − 1172
7320p₇₂#·367²⁰ − 1197
7434p₇₃#·373³⁴ − 1236
7522p₇₄#·379²² − 1208
7663p₇₅#·383⁶³ − 1316
77139p₇₆#·389¹³⁹ − 1516
7848p₇₇#·397⁴⁸ − 1284
7971p₇₈#·401⁷¹ − 1346
8025p₇₉#·409²⁵ − 1229
8155p₈₀#·419⁵⁵ − 1311
8245p₈₁#·421⁴⁵ − 1287
8327p₈₂#·431²⁷ − 1243
8422p₈₃#·433²² − 1233
85119p₈₄#·439¹¹⁹ − 1492
869p₈₅#·443⁹ − 1204
87124p₈₆#·449¹²⁴ − 1511
88470p₈₇#·457⁴⁷⁰ − 11,435
8920p₈₈#·461²⁰ − 1241
9051p₈₉#·463⁵¹ − 1326
916p₉₀#·467⁶ − 1209
9271p₉₁#·479⁷¹ − 1386
9374p₉₂#·487⁷⁴ − 1397
9495p₉₃#·491⁹⁵ − 1457
9583p₉₄#·499⁸³ − 1428
96589p₉₅#·503⁵⁸⁹ − 11,798
97171p₉₆#·509¹⁷¹ − 1672
9830p₉₇#·521³⁰ − 1294
99118p₉₈#·523¹¹⁸ − 1536
1001279p₉₉#·541¹²⁷⁹ − 13,713

The grid's edges in the OEIS

The first row and the first column of the grid, on both faces, were in the OEIS before this project, as were rows 2 and 3. Each sequence below is written in this site's letters; the OEIS entries use their own.

edge of the grid numbers OEIS
row k=1, minus faceMersenne numbers 2n−1: exponents giving primesA000043
row k=2, both faces2⋅3n−1 and 2⋅3n+1: exponents giving primesA003307, A003306
row k=3, both faces6⋅5n−1 and 6⋅5n+1: exponents giving primesA257790, A143279
column n=1, minus faceprimorial numbers pk#−1: the orders k, and the primes pk, at which it is primeA057704, A006794
column n=1, plus faceEuclid numbers pk#+1: the orders k, and the primes pk, at which it is primeA014545, A005234
the coefficientsprimorials pk#, and the primesA002110, A000040

Checked 9 October 2026: on every edge listed, the OEIS terms agree with this site's catalogue of proven primes as far as both reach.