Write an R program to find all the prime numbers less than a given number.
MediumProblem Statement
Write an R program to find all the prime numbers less than a given number.
Sample Input
Number: 20
Sample Output
[1] 3 5 7 11 13 17 19
Limits
Time: 2s · Memory: 256 MB