11647 - 231001_11/2_practice7-3   

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:

  1. There is a space after each number, including the last prime number.

  2. Change a new line at the end.

Sample Input  Download

Sample Output  Download

Tags




Discuss