Given T <= 10000 testcases. For each testcase given L,R Find the no. of primes p where p+2 is a prime or in the form x*y where x, y are primes(not necessarily distinct) in the range L,R. R<= 1000000
Constraints:
T <= 10000
R <= 1000000
solution.cpp
Loading...
Run code to see test results
00:00 / 69:42
Prime Numbers in Range
MediumMed•212 views
Given T <= 10000 testcases. For each testcase given L,R Find the no. of primes p where p+2 is a prime or in the form x*y where x, y are primes(not necessarily distinct) in the range L,R. R<= 1000000