Range of Composite numbers
Submissions: 215   Accuracy:

20.93%

  Difficulty: Easy   Marks: 2

Given an integer n, we need to find a range of positive integers such that all the number in that range are composite and length of that range is n. You may return anyone range in the case of more than one answer.

Input:
First line consists of T test cases. Only line, consists of an Integer N.

Output:
Single line output, "1" if range found else "0".

Constraints:
1<=T<=100
1<=N<=100

Example:
Input:
2
3
5
Output:
1
1

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Saksham Raj Seth
Author: saksham seth


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.