To cite package ‘primes’ in publications use:

Keyes O, Egeler P (2024). primes: Fast Functions for Prime Numbers. R package version 1.6.0, https://github.com/ironholds/primes.

Corresponding BibTeX entry:

  @Manual{,
    title = {primes: Fast Functions for Prime Numbers},
    author = {Os Keyes and Paul Egeler},
    year = {2024},
    note = {R package version 1.6.0},
    url = {https://github.com/ironholds/primes},
  }