{
  "id": "2001/102",
  "url": "https://opencryptology.org/2001/102",
  "original_url": "https://eprint.iacr.org/2001/102",
  "title": "An Extended Quadratic Frobenius Primality Test with Average Case Error Estimates",
  "authors": [
    "Ivan Damgård",
    "Gudmund Frandsen"
  ],
  "affiliations": null,
  "abstract": "We present an Extended Quadratic Frobenius Primality Test (EQFT), which is related to the Miller-Rabin test and the Quadratic Frobenius test (QFT) by Grantham. EQFT is well-suited for generating large, random prime numbers since on a random input number, it takes time about equivalent to 2 Miller-Rabin tests, but has much smaller error probability. EQFT extends QFT by verifying additional algebraic properties related to the existence of elements of order 3 and 4. We obtain a simple closed expression that upper bounds the probability of acceptance for any input number. This in turn allows us to give strong bounds on the average-case behaviour of the test: consider the algorithm that repeatedly chooses random odd $k$ bit numbers, subjects them to $t$ iterations of our test and outputs the first one found that passes all tests. We obtain numeric upper bounds for the error probability of this algorithm as well as a general closed expression bounding the error. For instance, it is at most $2^{-143}$ for $k=500, t=2$. Compared to earlier similar results for the Miller-Rabin test, the results indicates that our test in the average case has the effect of 9 Miller-Rabin tests, while only taking time equivalent to about 2 such tests. We also give bounds for the error in case a prime is sought by incremental search from a random starting point.  While EQFT is slower than the average case on a small set of inputs, we present a variant that is always fast, i.e.takes time about 2 Miller-Rabin tests.  The variant has slightly larger worst case error probability than EQFT, but still improves on previous proposed tests.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“An Extended Quadratic Frobenius Primality Test with Average Case Error Estimates” by Ivan Damgård, Gudmund Frandsen, Cryptology ePrint Archive, Paper 2001/102, https://eprint.iacr.org/2001/102. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2001-11-25T20:52:21Z",
    "updated": "2001-11-25T20:52:21Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2001/102.pdf",
    "sha256": "462a3c1dab3d322301630b01a49c3dd692f4d7f60ea4c2d5b8bfb0c91a2c6a28",
    "size": 278371,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:04:03Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2001/102/versions/20190225T160403Z.pdf",
      "captured_at": "2019-02-25T16:04:03Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2001/102.pdf",
      "size": 278371,
      "sha256": "462a3c1dab3d322301630b01a49c3dd692f4d7f60ea4c2d5b8bfb0c91a2c6a28",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260404150640id_/https://eprint.iacr.org/2001/102.pdf",
      "captured_at": "2026-04-04T15:06:40Z",
      "size": 250967
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2001/102.pdf",
      "captured_at": "2019-02-25T16:04:03Z",
      "size": 278371
    }
  ],
  "bibtex": "@misc{cryptoeprint:2001/102,\n      author = {Ivan Damgård and Gudmund Frandsen},\n      title = {An Extended Quadratic Frobenius Primality Test with Average Case Error Estimates},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2001/102},\n      year = {2001},\n      url = {https://eprint.iacr.org/2001/102}\n}"
}
