Leaderboard
Showing:
Handle Score
@Ibrahim Nash 6420
@blackshadows 6380
@mb1973 5646
@Quandray 5233
@akhayrutdinov 5111
@saiujwal13083 4716
@sanjay05 3762
@kirtidee18 3673
@marius_valentin_dragoi 3522
@sushant_a 3459
@verma_ji 3413
Complete Leaderboard
Range of Composite numbers
Easy Accuracy: 23.74% Submissions: 321 Points: 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

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.

Range of Composite numbers

Output Window