Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
4. Print the first 56 numbers in sequences 3 and 4.
56
3
4
Input: 12 56
12 56
Output: 2,4,5,6,9,10
2,4,5,6,9,10
4. Print the first 5 numbers in sequences 3 and 4.
5
Input: 12 5
12 5
Output: 2,4,5,6,9
2,4,5,6,9
4. Print the first 6 numbers in sequences 3 and 4.
6
Input: 12 6
12 6
#Details
Input: 2 2510
2 2510
Input: 2 25
2 25
Input: 2 10
2 10