Fibonacci Prime Finder Calculator

Number Theory

Fibonacci primes found9
Prime Fibonacci indices3, 4, 5, 7, 11, 13, 17, 23, 29
Largest prime found514,229
Index of the largest29
How this was calculated
  1. Generate F(1) to F(30) by adding the two previous terms, then test each value from F(3) upward for primality.
  2. The indices up to 30 whose Fibonacci number is prime are: 3, 4, 5, 7, 11, 13, 17, 23, 29. One curiosity: F(4) = 3 is prime even though the index 4 is composite, the only such case.
  3. The largest prime found is F(29) = 514,229. Two famous traps are composite: F(19) = 4,181 = 37 x 113 and F(31) = 1,346,269 = 557 x 2,417.
  4. Apart from F(4), a prime Fibonacci number always sits at a prime index, because F(a) divides F(b) whenever a divides b - but a prime index does not guarantee a prime value.

Everybody meets the Fibonacci numbers; far fewer meet the ones that are prime. The sequence 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233... is stuffed with composites wearing prime disguises, and sorting the genuine primes from the impostors has a beautiful shortcut and two famous traps.

This calculator generates the Fibonacci numbers up to your chosen index (at most 47) and tests each for primality, listing the indices where prime values occur. Up to F(30) there are 9 such indices; up to F(47) there are 11, ending with F(47) = 2,971,215,073 itself.

Whether infinitely many Fibonacci primes exist is unknown - one of those open problems that fits in a sentence and has resisted everyone.

Worked examples

Up to F(30)

(30)

Fibonacci primes found9
Prime Fibonacci indices3, 4, 5, 7, 11, 13, 17, 23, 29
Largest prime found514,229
Index of the largest29

Up to F(20)

(20)

Fibonacci primes found7
Prime Fibonacci indices3, 4, 5, 7, 11, 13, 17
Largest prime found1,597
Index of the largest17

Up to F(47)

(47)

Fibonacci primes found11
Prime Fibonacci indices3, 4, 5, 7, 11, 13, 17, 23, 29, 43, 47
Largest prime found2,971,215,073
Index of the largest47

The divisibility shortcut

The key fact is that F(a) divides F(b) whenever a divides b. So if the index is composite - say 21, divisible by 3 and 7 - then F(21) is automatically divisible by F(3) = 2 and F(7) = 13, and cannot be prime. Only prime indices need testing at all.

The single exception proves the rule's charm: F(4) = 3 is prime even though 4 is composite, because the divisor the theorem offers is F(2) = 1, which divides everything and disqualifies nothing. It is the only Fibonacci prime at a composite index.

The composite traps

A prime index is necessary but nowhere near sufficient. F(19) looks like a candidate and is 4,181 = 37 x 113. F(31) is worse: 1,346,269 = 557 x 2,417, a factorization nobody finds by glancing. Both indices are prime; both values are composite.

The successful indices up to 47 run 3, 4, 5, 7, 11, 13, 17, 23, 29, 43, 47 - note the gaps at 19, 31, 37 and 41, all prime indices whose Fibonacci numbers failed the test. Roughly speaking, the values grow so fast that primality becomes a lottery with steadily worsening odds.

How the search is done here

Values up to F(47) - just under three billion - are tested by trial division, whose square-root bound of about 55,000 makes the test instant. That honesty has a limit: the largest known Fibonacci primes have indices in the hundreds of thousands and values with tens of thousands of digits.

At that frontier, trial division is hopeless and probable-prime tests take over, which is why the biggest entries are technically 'probable' Fibonacci primes. The first several dozen, including everything on this page, are proven primes.

Are there infinitely many?

Nobody knows. Heuristics suggest the count up to index n should grow very slowly - roughly like the logarithm of n adjusted for the divisibility shortcut - which is consistent with both finitude and a thin infinitude. The problem has the same flavour as the twin prime conjecture: overwhelming circumstantial evidence, no proof.

What is known is the complete list of small ones, and that the search continues as a benchmark for primality-proving software. Each new Fibonacci prime found is a minor event; each long drought settles nothing.

Fibonacci primes in the wild

Beyond the pure question, Fibonacci primes surface in the study of Lucas sequences - the family generalizing Fibonacci - where the same divisibility law organizes the hunt for prime values. The theory of these sequences underlies some of the strongest primality tests in practical use.

There is also a pleasing converse to admire: just as prime indices host the prime values, the Fibonacci numbers at prime indices are exactly where the sequence's own arithmetic is richest, with F(p) congruent to plus or minus 1 modulo p depending on p's remainder mod 10 - a theorem of Lagrange hiding inside the pattern.

Reading the output

The calculator returns the count of prime values found, the full index list, and the largest prime with its index. Comparing the lists at 20, 30 and 47 shows the hunt's rhythm: two new primes between 20 and 30 (at 23 and 29), then only two more (43 and 47) across the next seventeen indices - with the traps at 31, 37 and 41 in between.

The index list as a sieve story

Read the successful indices - 3, 4, 5, 7, 11, 13, 17, 23, 29, 43, 47 - against the primes themselves and the sieve logic shows through: every prime index up to 47 was tested, and the failures at 19, 31, 37 and 41 are the interesting data. Nothing in the theory predicts which prime indices succeed; each is an individual event.

That individuality is why the search cannot be shortcut. The divisibility law prunes composite indices for free, but among prime indices there is no pattern to exploit - only bigger probable-prime tests on bigger numbers.

Probable primes at the frontier

The largest known Fibonacci primes were found by testing indices in the hundreds of thousands, where F(n) has tens of thousands of digits. At that scale the tests are probabilistic - strong probable-prime tests whose error probability is negligible but nonzero - and the results are announced as probable primes until or unless a proof is produced.

Everything this calculator reports, by contrast, is proved by exhaustive trial division. The boundary at index 47 is chosen so that the word 'prime' on this page means proven, not probable.

A Lagrange postscript

The congruence mentioned earlier - F(p) is congruent to 1 or -1 modulo p, the sign given by p modulo 10 - means prime-indexed Fibonacci numbers hover one step away from divisibility by their own index. F(19) being composite through other factors (37 and 113) while obeying the congruence is a neat demonstration that necessary conditions are not sufficient ones, the same lesson the Poulet numbers teach from the other side.

The Lucas companion

The Lucas numbers - 2, 1, 3, 4, 7, 11, 18, 29, 47 - run parallel to Fibonacci with the same recurrence and different seeds, and they have their own prime hunt governed by sibling divisibility laws. Prime hunters treat the two sequences as one family (Lucas sequences), and the same software tests both.

Cross-references between the families are plentiful: every other Fibonacci number relates to Lucas values by exact identities, so a primality result in one sequence sometimes settles a question in the other. The elementary surface hides a well-organized theory.

Density intuition

A random number near F(n) has roughly one chance in n x log(phi)... in practical terms, the chance that F at a prime index is prime falls off like a constant over the index itself. Summed over indices, the expected count grows like a double logarithm - so slowly that whether the total is infinite is genuinely delicate, and each new discovery slightly surprises the heuristics without contradicting them.

That delicacy is why the problem resists the usual 'obviously infinite' intuition that works for, say, primes in arithmetic progressions. Fibonacci primes may be infinite the way a barely-diverging series is infinite - true, but only just.

Checking the traps by hand

F(19) = 4,181 falls to a moment's divisibility hunting: try small primes and 37 surfaces (37 x 113). F(31) = 1,346,269 is a sterner exercise - its smallest factor is 557 - chosen by textbooks precisely because it defeats casual checking and rewards systematic trial division up to the square root.

Working one trap by hand recalibrates respect for the calculator's instant verdicts at F(47): the same procedure, executed 55,000 divisions deep, without tiring.

Fibonacci primes and repunits in disguise

Divide a Fibonacci number by the Fibonacci number at a divisor index and the quotient has its own structure; the prime hunt exploits a cousin of this in Lucas sequences, where special forms connect to repunits - numbers like 11, 111, 1111 - whose factorization patterns are a classical subject. Several record Fibonacci prime tests were run with software built for that broader family.

The moral is that 'Fibonacci prime' is not an isolated hobby but one window on Lucas sequences, a family with two centuries of theory - which is why progress on the open problem, when it comes, will probably arrive from the general theory rather than from bigger computers alone.

For the reader testing indices on this page, the practical frontier is far below the research one - but the rule being applied, prime index first, is the same rule the record-hunters' software applies at indices with thousands of digits.

FAQs

What is a Fibonacci prime?

A number that is both a Fibonacci number and a prime - for example F(13) = 233.

What is the largest Fibonacci prime up to F(47)?

F(47) = 2,971,215,073.

Is F(19) prime?

No - F(19) = 4,181 = 37 x 113, the classic trap: a prime index does not guarantee a prime value.

Must the index of a Fibonacci prime be prime?

Yes, with one exception: F(4) = 3. Otherwise a composite index forces F at that index to have a nontrivial Fibonacci divisor.

How many Fibonacci primes are there up to F(30)?

9, at indices 3, 4, 5, 7, 11, 13, 17, 23 and 29.

Is it known whether there are infinitely many Fibonacci primes?

No - it remains an open problem, though heuristics suggest they continue, thinning out slowly.

What is F(43), the second-largest prime in range?

F(43) = 433,494,437, which is prime - the largest before F(47) in the calculator's range.

What is F(29)?

514,229, which is prime - the largest Fibonacci prime with index at most 30.

Sources

Related calculators

Correlation Coefficient Calculator
Pearson's r for up to six paired observations, with r² and the deviation sums shown — the full workings, not just the headline number.
Lognormal Distribution Calculator
Compute the CDF, PDF, mean and median of a lognormal distribution from its log-scale mu and sigma.
Sphere Volume Calculator
Volume and surface area of a sphere from its radius — plus diameter, great-circle circumference and the hemisphere figure.