11647 - 231001_11/2_practice7-3
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
| Case 5 |
1 sec |
32 MB |
Description
Input two positive numbers n1 and n2, where n1<n2, and print all prime numbers between n1 and n2.
-
Use at least ONE function.
-
1 is not a prime.
Input
Input: Two positive numbers n1 and n2, n1< n2
Input format: Two numbers separate by a space
Output
Output: Print out all prime numbers
Output format:
-
There is a space after each number, including the last prime number.
-
Change a new line at the end.
Tags