erastosthenesSieve: Erastosthenes Sieve

View source: R/RcppExports.R

erastosthenesSieveR Documentation

Erastosthenes Sieve

Description

erastosthenesSieve calculates the all prime numbers up till given limit. https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes for more info about how it works.

Usage

erastosthenesSieve(limit)

Arguments

limit

Calculation limit

Value

A list containing all prime numbers

Maintainers

Fazendaaa

Author(s)

Fazendaaa

Examples

erastosthenesSieve(100)
erastosthenesSieve(200)
erastosthenesSieve(300)


Fazendaaa/sieveR documentation built on Sept. 14, 2022, 3:11 p.m.