{
  "_id": "6af1a16894cdbf48db2b16ca",
  "Package": "primes",
  "Type": "Package",
  "Title": "Fast Functions for Prime Numbers",
  "Version": "1.6.0",
  "Date": "2023-12-30",
  "Authors@R": "c(\nperson(\"Os\", \"Keyes\", email = \"ironholds@gmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Paul\", \"Egeler\", email = \"paulegeler@gmail.com\", role = c(\"aut\"), comment = c(ORCID = \"0000-0001-6948-9498\"))\n)",
  "Description": "Fast functions for dealing with prime numbers, such as\ntesting whether a number is prime and generating a sequence\nprime numbers. Additional functions include finding prime\nfactors and Ruth-Aaron pairs, finding next and previous prime\nnumbers in the series, finding or estimating the nth prime,\nestimating the number of primes less than or equal to an\narbitrary number, computing primorials, prime k-tuples (e.g.,\ntwin primes), finding the greatest common divisor and smallest\n(least) common multiple, testing whether two numbers are\ncoprime, and computing Euler's totient function. Most functions\nare vectorized for speed and convenience.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/ironholds/primes",
  "BugReports": "https://github.com/ironholds/primes/issues",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Repository": "https://ironholds.r-universe.dev",
  "Date/Publication": "2024-01-16 15:57:48 UTC",
  "RemoteUrl": "https://github.com/ironholds/primes",
  "RemoteRef": "HEAD",
  "RemoteSha": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-11-09 10:24:34 UTC",
    "User": "root"
  },
  "Author": "Os Keyes [aut, cre],\nPaul Egeler [aut] (ORCID: <https://orcid.org/0000-0001-6948-9498>)",
  "Maintainer": "Os Keyes <ironholds@gmail.com>",
  "_user": "ironholds",
  "_type": "src",
  "_file": "primes_1.6.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/6a0051755b866ee12d8369ce95297325926a7c025dc0fe2ce22b6abc5006f736",
  "_filesize": 173577,
  "_sha256": "6a0051755b866ee12d8369ce95297325926a7c025dc0fe2ce22b6abc5006f736",
  "_expires": "2027-02-17T10:33:11.000Z",
  "_created": "2026-11-09T10:24:34.000Z",
  "_published": "2026-11-09T10:33:12.659Z",
  "_upstream": "https://github.com/ironholds/primes",
  "_status": "success",
  "_maintainer": {
    "name": "Os Keyes",
    "email": "ironholds@gmail.com"
  },
  "_jobs": [
    {
      "job": 129104190282,
      "time": 112,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13666150739"
    },
    {
      "job": 129104190598,
      "time": 127,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13665518340"
    },
    {
      "job": 129104190369,
      "time": 106,
      "config": "linux-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13665327774"
    },
    {
      "job": 129104190447,
      "time": 147,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13665533183"
    },
    {
      "job": 129104190418,
      "time": 111,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13666440091"
    },
    {
      "job": 129104190358,
      "time": 206,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13665642402"
    },
    {
      "job": 129104190472,
      "time": 87,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13665892580"
    },
    {
      "job": 129104190469,
      "time": 308,
      "config": "macos-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13665458387"
    },
    {
      "job": 129103077532,
      "time": 164,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13665497050"
    },
    {
      "job": 129104190318,
      "time": 103,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13665283495"
    },
    {
      "job": 129104190284,
      "time": 204,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13665368684"
    },
    {
      "job": 129104190473,
      "time": 184,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13664704428"
    },
    {
      "job": 129104190446,
      "time": 108,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13665209143"
    },
    {
      "job": 129104190300,
      "time": 187,
      "config": "windows-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13666012187"
    },
    {
      "job": 129104190293,
      "time": 110,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13665812527"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070",
  "_commit": {
    "id": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
    "author": "Os Keyes <Ironholds@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #15 from pegeler/issue-14\n\nAddressing floating point error in Euler's totient function",
    "time": 1705420668
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "ironholds",
  "_selfowned": true,
  "_usedby": 6,
  "_updates": [],
  "_tags": [],
  "_stars": 10,
  "_contributors": [
    {
      "user": "pegeler",
      "count": 62,
      "uuid": 32426645
    },
    {
      "user": "ironholds",
      "count": 12,
      "uuid": 2487262
    }
  ],
  "_userbio": {
    "uuid": 2487262,
    "type": "user",
    "name": "Os Keyes",
    "followers": 366
  },
  "_downloads": {
    "count": 1024,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/primes"
  },
  "_devurl": "https://github.com/ironholds/primes",
  "_searchresults": 94,
  "_topics": [
    "cpp"
  ],
  "_abi": {
    "exports": [
      {
        "key": "primes/include",
        "hash": "da1bb5fcc06d450e"
      },
      {
        "key": "primes::_primes_RcppExport_validate()",
        "hash": "fc98bccb20b2fc60"
      },
      {
        "key": "primes::_primes_Rgcd_()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "primes::_primes_Rscm_()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "primes::_primes_coprime()",
        "hash": "9b851b38c3049e0f"
      },
      {
        "key": "primes::_primes_gcd()",
        "hash": "9b851b38c3049e0f"
      },
      {
        "key": "primes::_primes_gcd_()",
        "hash": "9b851b38c3049e0f"
      },
      {
        "key": "primes::_primes_generate_n_primes()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "primes::_primes_generate_primes_()",
        "hash": "9b851b38c3049e0f"
      },
      {
        "key": "primes::_primes_is_prime()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "primes::_primes_k_tuple()",
        "hash": "36ea258b8dcd0a3b"
      },
      {
        "key": "primes::_primes_next_prime()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "primes::_primes_nth_prime()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "primes::_primes_nth_prime_estimate()",
        "hash": "9b851b38c3049e0f"
      },
      {
        "key": "primes::_primes_prev_prime()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "primes::_primes_prime_count()",
        "hash": "9b851b38c3049e0f"
      },
      {
        "key": "primes::_primes_prime_factors()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "primes::_primes_scm()",
        "hash": "9b851b38c3049e0f"
      },
      {
        "key": "primes::_primes_scm_()",
        "hash": "9b851b38c3049e0f"
      },
      {
        "key": "primes::_primes_sexy_prime_triplets()",
        "hash": "9b851b38c3049e0f"
      }
    ],
    "imports": [
      {
        "key": "Rcpp::Rcpp_precious_preserve()",
        "hash": "33a97ea62b293da6"
      },
      {
        "key": "Rcpp::Rcpp_precious_remove()",
        "hash": "63d26947ba7e1377"
      },
      {
        "key": "Rcpp::dataptr()",
        "hash": "54e69ad2e6668c83"
      },
      {
        "key": "Rcpp::demangle()",
        "hash": "b0cfd6754c5ebc4e"
      },
      {
        "key": "Rcpp::enterRNGScope()",
        "hash": "a04a299137cef947"
      },
      {
        "key": "Rcpp::exitRNGScope()",
        "hash": "a04a299137cef947"
      }
    ]
  },
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/primes.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/ironholds/primes",
  "_realowner": "ironholds",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2015-06-22"
    },
    {
      "version": "0.2.0",
      "date": "2020-07-27"
    },
    {
      "version": "1.0.0",
      "date": "2020-07-29"
    },
    {
      "version": "1.1.0",
      "date": "2020-09-03"
    },
    {
      "version": "1.4.0",
      "date": "2022-09-12"
    },
    {
      "version": "1.5.0",
      "date": "2023-10-08"
    },
    {
      "version": "1.5.1",
      "date": "2023-11-08"
    },
    {
      "version": "1.5.2",
      "date": "2023-12-19"
    },
    {
      "version": "1.6.0",
      "date": "2024-01-09"
    },
    {
      "version": "1.6.1",
      "date": "2025-02-04"
    }
  ],
  "_exports": [
    "coprime",
    "cousin_primes",
    "gcd",
    "generate_n_primes",
    "generate_primes",
    "is_prime",
    "k_tuple",
    "next_prime",
    "nth_prime",
    "nth_prime_estimate",
    "phi",
    "prev_prime",
    "prime_count",
    "prime_factors",
    "primorial_n",
    "primorial_p",
    "Rgcd",
    "Rscm",
    "ruth_aaron_pairs",
    "scm",
    "sexy_prime_triplets",
    "sexy_primes",
    "third_cousin_primes",
    "twin_primes"
  ],
  "_datasets": [
    {
      "name": "primes",
      "title": "Pre-computed Prime Numbers",
      "object": "primes",
      "class": [
        "integer"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "gcd",
      "title": "Find the Greatest Common Divisor, Smallest Common Multiple, or Coprimality",
      "topics": [
        "coprime",
        "gcd",
        "lcm",
        "Rgcd",
        "Rscm",
        "scm"
      ]
    },
    {
      "page": "generate_primes",
      "title": "Generate a Sequence of Prime Numbers",
      "topics": [
        "generate_n_primes",
        "generate_primes"
      ]
    },
    {
      "page": "is_prime",
      "title": "Test for Prime Numbers",
      "topics": [
        "is_prime"
      ]
    },
    {
      "page": "k_tuple",
      "title": "Prime _k_-tuples",
      "topics": [
        "cousin_primes",
        "k_tuple",
        "sexy_primes",
        "sexy_prime_triplets",
        "third_cousin_primes",
        "twin_primes"
      ]
    },
    {
      "page": "next_prime",
      "title": "Find the Next and Previous Prime Numbers",
      "topics": [
        "next_prime",
        "prev_prime"
      ]
    },
    {
      "page": "nth_prime",
      "title": "Get the n-th Prime from the Sequence of Primes.",
      "topics": [
        "nth_prime"
      ]
    },
    {
      "page": "phi",
      "title": "Euler's Totient Function",
      "topics": [
        "phi"
      ]
    },
    {
      "page": "prime_count",
      "title": "Prime-counting Functions and Estimating the Value of the n-th Prime",
      "topics": [
        "nth_prime_estimate",
        "prime_count"
      ]
    },
    {
      "page": "prime_factors",
      "title": "Perform Prime Factorization on a Vector",
      "topics": [
        "prime_factors"
      ]
    },
    {
      "page": "primes",
      "title": "Pre-computed Prime Numbers",
      "topics": [
        "primes"
      ]
    },
    {
      "page": "primorial",
      "title": "Compute the Primorial",
      "topics": [
        "primorial",
        "primorial_n",
        "primorial_p"
      ]
    },
    {
      "page": "ruth_aaron_pairs",
      "title": "Find Ruth-Aaron Pairs of Integers",
      "topics": [
        "ruth_aaron_pairs"
      ]
    }
  ],
  "_readme": "https://github.com/ironholds/primes/raw/HEAD/README.md",
  "_rundeps": [
    "Rcpp"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 5.937670319678835,
  "_indexed": true,
  "_nocasepkg": "primes",
  "_universes": [
    "ironholds"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.6.0",
      "date": "2026-11-09T10:26:29.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/f12468615db36b5bd50bf9d6d11b3a8318c0a71343c68cc8e676cfb20dbd1dc8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.6.0",
      "date": "2026-11-09T10:26:38.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/2b7d9fa564c371220495b4e22c0df23e1ab4a4c9b00902fc6ebcb1ecc7689fc1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.6.0",
      "date": "2026-11-09T10:26:27.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/e0a48341ea2162cc22327ccfa92273b4810d2ef582654546e630a4476a5ac53b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "1.6.0",
      "date": "2026-11-09T10:26:57.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/73cb91fd30a23437ad35814aa4ee27b7aa3438e73a03aa93eae6c6ca73a82d61",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.6.0",
      "date": "2026-11-09T10:28:18.000Z",
      "arch": "aarch64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/e5109a234242585124e2e2bd1f8b8fc457368d53b9a784deac4d519306ed4cc2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.6.0",
      "date": "2026-11-09T10:28:34.000Z",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/25a087a531ee7e4a6eb9455ac8dc6bf778149d47ac4e20b0cec0d80a5405e741",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.6.0",
      "date": "2026-11-09T10:29:06.000Z",
      "arch": "aarch64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/b941348c3a9b133202a13f416d262ac6cf3f6e4eb9f05d6a089c9594f79ef2f0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "1.6.0",
      "date": "2026-11-09T10:31:17.000Z",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/7a61587e52582e93d08eefa9430c6d9fca60ddc0115f81c4ea68bcc4a00af84c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.6.0",
      "date": "2026-11-09T10:26:23.000Z",
      "arch": "emscripten",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/525163bdc1e8511be34759a55d7705f0556590474ff88c74305b18d68e988d1f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.6.0",
      "date": "2026-11-09T10:27:33.000Z",
      "arch": "aarch64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/1895f860239da5d80f75ee9b1527c614c6e1895b1100ebb47408bf5c47cf28ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.6.0",
      "date": "2026-11-09T10:26:07.000Z",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/99959549bee6150def5398205daf6aeaf70db084e543239e9e2062e9dd83e855",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.6.0",
      "date": "2026-11-09T10:25:54.000Z",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/6cc798a2258ee2ccd793a9943b10f7d4d993b0c407279ffa49f087b67c7eff9b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.6.0",
      "date": "2026-11-09T10:27:22.000Z",
      "arch": "aarch64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/f84f7865ecf9612e85db2facafc05c9569aeefe18048964c2fbf6575a1574bdd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "1.6.0",
      "date": "2026-11-09T10:25:49.000Z",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/3f4d618385ef3c509569bdb2052453be806aa75f2da8d9e679124564dcf890d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/42600350070"
    }
  ]
}