{
  "_id": "6a493b9ea19c9318096e703b",
  "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-07-04 16:51:35 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/a15ef12a832ca8b44dce41aea04081e849dc731527abb8b1beac9c7f7c96d123",
  "_filesize": 173995,
  "_sha256": "a15ef12a832ca8b44dce41aea04081e849dc731527abb8b1beac9c7f7c96d123",
  "_expires": "2026-10-12T16:58:04.000Z",
  "_created": "2026-07-04T16:51:35.000Z",
  "_published": "2026-07-04T16:58:06.294Z",
  "_jobs": [
    {
      "job": 85149766842,
      "time": 133,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8083607751"
    },
    {
      "job": 85149766841,
      "time": 129,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8083606779"
    },
    {
      "job": 85149766834,
      "time": 131,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8083607442"
    },
    {
      "job": 85149766846,
      "time": 120,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8083605825"
    },
    {
      "job": 85149766848,
      "time": 90,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8083601949"
    },
    {
      "job": 85149766840,
      "time": 218,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8083617754"
    },
    {
      "job": 85149766865,
      "time": 84,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8083601165"
    },
    {
      "job": 85149766853,
      "time": 337,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8083633003"
    },
    {
      "job": 85149563631,
      "time": 172,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8083590269"
    },
    {
      "job": 85149766817,
      "time": 138,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8083608009"
    },
    {
      "job": 85149766836,
      "time": 101,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8083603201"
    },
    {
      "job": 85149766851,
      "time": 115,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8083605448"
    },
    {
      "job": 85149766827,
      "time": 111,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8083604465"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969",
  "_status": "success",
  "_upstream": "https://github.com/ironholds/primes",
  "_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
  },
  "_maintainer": {
    "name": "Os Keyes",
    "email": "ironholds@gmail.com"
  },
  "_distro": "resolute",
  "_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": 4,
  "_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": 1145,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/primes"
  },
  "_devurl": "https://github.com/ironholds/primes",
  "_searchresults": 75,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/primes.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_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.712018000451251,
  "_indexed": true,
  "_nocasepkg": "primes",
  "_universes": [
    "ironholds"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.6.0",
      "date": "2026-07-04T16:53:57.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/d9935a077776b7b06915ee8869fcdfc02af8da483bb380b7296a2c92be0901ba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.6.0",
      "date": "2026-07-04T16:53:47.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/43a2e5a5123ece1ab22f78493312c118d6301800acd03aac6b64d2c39a58bef1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.6.0",
      "date": "2026-07-04T16:53:55.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/87edd25b82fd430bb49aa4cb3d24d2b3597a9ebf19e78bee60de94938018eb9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.6.0",
      "date": "2026-07-04T16:53:38.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/4ee9078ba0269051a035f988a72920a18fbe087715c441fee5eb7401a845e07a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.6.0",
      "date": "2026-07-04T16:53:12.000Z",
      "arch": "aarch64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/53cd32977abacc802a3e1be8dd1ba789628befd7ddd7aab4a95c476f49723fb0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.6.0",
      "date": "2026-07-04T16:54:38.000Z",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/20fdceb6af3ecf9837734a8755fc96f021ef9ad52397329c4e5037ebbfa54587",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.6.0",
      "date": "2026-07-04T16:53:06.000Z",
      "arch": "aarch64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/ecaddfa3171e4c7b46ab8c8c73893dc2e382686cd50b45a463d8d1a01c46ab41",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.6.0",
      "date": "2026-07-04T16:56:18.000Z",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/8928b217b97c75fe13ea90bd947cab0cd254de049e5338d754c97328fec8f064",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.6.0",
      "date": "2026-07-04T16:54:04.000Z",
      "arch": "emscripten",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/1d1e4b204ed7f1f342eaa87654be159212a96866ee51c939e38e7805a320b210",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.6.0",
      "date": "2026-07-04T16:52:49.000Z",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/1640c5d4056bd5d7b41d59300b31cf8d53a850c9e7f4269eefecf5c1665e444f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.6.0",
      "date": "2026-07-04T16:53:06.000Z",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/983a2306811b227c0275375b927984033b04b8e11e988cdbe6a27230a23fbe7e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.6.0",
      "date": "2026-07-04T16:52:52.000Z",
      "arch": "x86_64",
      "commit": "915c26c5c4df95a3f308f4e3fc5cd2e726e393ed",
      "fileid": "https://r2.ropensci.org/322a1f00332dbdf10e4e3e3aec225123f2276f7930ba0afaf901987f6cfc6501",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ironholds/actions/runs/28713003969"
    }
  ]
}