{
  "id": "2005/462",
  "url": "https://opencryptology.org/2005/462",
  "original_url": "https://eprint.iacr.org/2005/462",
  "title": "A Simplified Quadratic Frobenius Primality Test",
  "authors": [
    "Martin Seysen"
  ],
  "affiliations": null,
  "abstract": "The publication of the quadratic Frobenius primality test by\nGrantham, 1998 has stimulated a lot of researchin this area. In this test as well as in the Miller-Rabin test a composite number may be\ndeclared as probably prime. Repeating several tests decreases that\nerror probability. While most research papers in this subject focus on minimising the error probability as a function of the number of\ntests (or, more generally, of the computational effort)\nasymptotically, we present a simplified variant SQFT of the\nquadratic Frobenius test. This test is so simple that it can easily\nbe implemented on a smart card.\n\nDuring prime number generation, a large number of composite numbers\nmust be tested before a (probable) prime is found. Therefore we need\na fast test, such as the Miller-Rabin test with a small basis, to\nrule out most prime candidates quickly before a promising candidate\nwill be tested with a more sophisticated variant of the QFT. Our\ntest SQFT  makes optimum use of the information gathered by a\nprevious Miller-Rabin test. It has run time equivalent to two\nMiller-Rabin tests; and it achieves a worst-case error probability\nof $2^{-12t}$ with $t$ tests.\n\nMost cryptographic standards require an average-case error\nprobability of at most $2^{-80}$ or $2^{-100}$, when prime numbers\nare generated in public key systems. Our test SQFT achieves an average-case error probability of $2^{-134}$ with two test rounds for $500-$bit primes.\n\nWe also present a more sophisticated version SQFT3 of our test that has run time and worst-case error probability comparable to the test EQFTwc by Damg\\aa rd and Frandsen, 2003, in all cases. Our test SQFT3 avoids the computation of cubic residuosity symbols, as required in the test EQFTwc.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A Simplified Quadratic Frobenius Primality Test” by Martin Seysen, Cryptology ePrint Archive, Paper 2005/462, https://eprint.iacr.org/2005/462. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2005-12-31T14:59:44Z",
    "updated": "2005-12-31T14:59:44Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2005/462.pdf",
    "sha256": "87d3a6d45b94ec6f57fb52e98a78539856b8d940455c7993a7ab6dd300d33961",
    "size": 372578,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:06:57Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2005/462/versions/20190225T160657Z.pdf",
      "captured_at": "2019-02-25T16:06:57Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2005/462.pdf",
      "size": 372578,
      "sha256": "87d3a6d45b94ec6f57fb52e98a78539856b8d940455c7993a7ab6dd300d33961",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260501214027id_/https://eprint.iacr.org/2005/462.pdf",
      "captured_at": "2026-05-01T21:40:27Z",
      "size": 291582
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2005/462.pdf",
      "captured_at": "2019-02-25T16:06:57Z",
      "size": 372578
    }
  ],
  "bibtex": "@misc{cryptoeprint:2005/462,\n      author = {Martin Seysen},\n      title = {A Simplified Quadratic Frobenius Primality Test},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2005/462},\n      year = {2005},\n      url = {https://eprint.iacr.org/2005/462}\n}"
}
