Finding (p,p+2) primes

111 Views Asked by At

Finding (P,P+2) Primes in R, I tried like this

twinPrimes(1,100)
     [,1] [,2]
[1,]    3    5
[2,]    5    7
[3,]   11   13
[4,]   17   19
[5,]   29   31
[6,]   41   43
[7,]   59   61
[8,]   71   73

I got the answer. But this command will work only upto finding 100000 after that also I'm getting the answer but still some error like this

[ reached getOption("max.print") -- omitted 3169 rows ]

How to avoid this?

0

There are 0 best solutions below