All submissions for this problem are available.
Ankita is very lazy, her teacher asked her to find composite numbers between a given closed interval. Will you please help her?
- The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows.
- The first line of each test case contains two integers N and M denoting the limit.
- For each test case, output a single line containing required numbers.
- 1 ≤ T ≤ 10
- 100 ≤ M-N ≤ 100000
Input: 1 10 25 Output: 10 12 14 15 16 18 20 21 22 24 25
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.5, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, SCM chicken, CLOJ, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.