All Tools
Categories
Number Tools 69 XML Tools 64 Email Marketing Tools 55 Import-Export Tools 50 JSON Tools 45 Text Tools 13 Shipping Freight Tools 5 Calculator 4
About Contact Privacy

Fibonacci Prime Test

Free Fibonacci prime checker. Test any number - 89, 233, 1597, 28657 - to find out in one click whether it is both a Fibonacci number and a prime, with its exact index and full classification. Batch up to 10,000 values. Runs in your browser. No sign-up.

Number(s)
Two exact tests: Fibonacci membership via 5n² ± 4, primality via Miller-Rabin. Both run on BigInt — no rounding, no guesswork.
Verdicts

          

About Fibonacci Prime Test

A Fibonacci prime is the rarest special number in elementary arithmetic: it must be both a member of the Fibonacci sequence and a prime. The list starts 2, 3, 5, 13, 89, 233, 1597, 28657 — sparse values at sparse indexes, and because 8 and 21 already show composite Fibonacci numbers, the intersection is genuinely narrow. Even deciding whether a number like 433494437 qualifies needs two tests, and an eyeball does neither well.

Fibonacci Prime Test applies both checks exactly, in your browser. Membership uses the Lucas identity (5n squared ± 4 is a square) with BigInt square roots, and primality uses a deterministic-for-all-practical-sizes Miller-Rabin test. Every input gets a full classification — Fibonacci prime, Fibonacci composite, or not Fibonacci — with its index, and batches of 10,000 values run in one pass. Nothing is uploaded, ever.

Features

  • Two independent exact tests: Lucas square-test for membership, Miller-Rabin (twelve bases) for primality.
  • Five-way classification: Fibonacci prime, Fibonacci composite, prime but not Fibonacci, not Fibonacci, and the special-cased 0 and 1.
  • Index display: Confirmed members show k with F(k) = n — and the odd-index pattern behind Fibonacci primes.
  • BigInt everywhere: Hundreds of digits classified exactly, with zero floating-point involvement.
  • Batch testing: Up to 10,000 values per run, each verdict independent and detailed.
  • Copy or download: Take the classified list to the clipboard or save it as a text file.
  • Reference tab: The first 26 known Fibonacci primes, with the even-index factorization note.
  • Free and private: Everything runs locally in the browser; nothing is uploaded or stored.

How to Use

  1. Enter numbers — one per line, or a batch separated by commas or spaces.
  2. Read the five-way verdict — each value is classified against both tests.
  3. Inspect the detail row — index for members, square-test note, and nearest neighbors.
  4. Compare edge cases — try 8 (composite fib), 7 (prime, not fib), 89 (true Fibonacci prime).
  5. Copy or download the results for reports, tests or teaching.

Examples

Example 1 — The twin primes of the sequence. Enter 2 and 3. Both return "Fibonacci prime": F(3) = 2 and F(4) = 3, the first two members of the list.

Example 2 — A composite member. Enter 21. The verdict is "Fibonacci, composite" — F(8), but 21 = 3 x 7, so membership alone is not enough.

Example 3 — The other side of the coin. Enter 7. The verdict is "not Fibonacci" — 7 is prime but never appears in the sequence, showing why both tests are needed.

Example 4 — The famous jump. Enter 514229. The verdict is "Fibonacci prime" at index 29 — one of the most recognizable large entries in the list.

Example 5 — A batch audit. Enter 5, 8, 13, 21, 34, 55, 89, 144, 233, 377. The tool splits them into Fibonacci primes (5, 13, 89, 233) and composite members (8, 21, 34, 55, 144, 377) automatically.

Benefits

  • Both tests, exact: Membership and primality are each proven, never guessed.
  • Full classification: Five distinct verdicts cover every possible input including the awkward 0 and 1.
  • Practical certainty: Deterministic Miller-Rabin bases cover the entire range ordinary numbers occupy.
  • Educational clarity: Indexes and factorization notes explain why each verdict is correct.
  • Batch speed: Ten thousand candidates classified per run with per-line detail.
  • Private and free: Everything runs in the browser; nothing is uploaded, stored or logged.

Frequently Asked Questions

What exactly is being tested?
A number faces two independent tests: is it in the Fibonacci sequence, and is it prime? If both answers are yes, it is a Fibonacci prime — the first examples are 2, 3, 5, 13, 89, 233, 1597 and 28657. Anything else is classified by which test it failed.
How is Fibonacci membership decided?
Exactly as in the Fibonacci Number Test: n is Fibonacci precisely when 5n squared plus 4 or 5n squared minus 4 is a perfect square. The tool computes both candidates with BigInt square roots, so membership is decided without any floating point.
How is primality decided?
With the Miller-Rabin test using the first twelve prime bases. That combination is deterministically correct for every number below about 3.3 x 10^24 and probabilistically certain above it — no other primality check needed at these sizes.
What do the different verdicts mean?
There are five answers: "Fibonacci prime" (both tests pass), "Fibonacci, composite" (in the sequence, not prime — like 8 or 21), "not Fibonacci" (never in the sequence, whatever its primality), "prime, not Fibonacci" (like 7), and the special cases 0 and 1 which are Fibonacci but neither prime nor composite.
Why are even-indexed Fibonacci numbers never prime (above 3)?
The identity F(2m) = F(m) x L(m), with L the Lucas sequence, factors every even-indexed value past F(4) into two smaller integers — F(10) = F(5) x L(5) = 5 x 11 = 55. So all Fibonacci primes beyond 3 sit at odd indexes, a pattern the tool surfaces via the displayed index.
Can I check a big batch?
Yes. Paste up to 10,000 numbers separated by new lines, commas or spaces, and every value is classified independently. Huge inputs are fine — each one runs through the same BigInt tests.
Why is 1 special?
1 is Fibonacci (it is F(1) and F(2)) but it is neither prime nor composite — by definition primes start at 2. The tool labels it "Fibonacci, not prime" with a note, rather than misclassifying it either way.
Is it an open question?
Yes — nobody knows whether infinitely many Fibonacci primes exist. Verifying individual candidates with a tool like this is exactly how the search has always proceeded, candidate by candidate.
Is anything stored or uploaded?
No. Both tests run entirely in your browser. Nothing you type is sent to a server, saved or logged. Copy or download the results before closing the tab.