Learn R Programming

schoolmath (version 0.5.1)

primes: generate prime-numbers in a range from START to END

Description

generate prime-numbers in a range from START to END

Usage

primes(start = 1, end = 9999, live = FALSE)

Value

a vector of prime numbers

Arguments

start

the number to start from

end

the number to end

live

should primes additionally be printed out to stdout when found? (default is FALSE)

Examples

Run this code
primes(12,150) # list prime-numbers between 12 and 150

Run the code above in your browser using DataLab