Finding and Printing prime numbers

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

julia> using Primes

julia> isprime(3)
true

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

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

See the docs of the Primes package.

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