Finding and Printing prime numbers

#1

What will be syntax for finding prime numbers in Julia ?
Finding prime numbers between a given range . Count and print them.

0 Likes

#2
julia> using Primes

julia> isprime(3)
true

julia> isprime(BigInt(170141183460469231731687303715884105727))
true
3 Likes

#3

Find and print prime numbers for a given range this is my question . Sorry !! For not posting vthe question properly.

0 Likes

#4

See the docs of the Primes package.

0 Likes

#5

The package on GitHub:

The documentation section on generating primes in a range:

http://juliamath.github.io/Primes.jl/latest/api/#Generating-prime-numbers-1

3 Likes