#C11643. Prime Number Generator
Prime Number Generator
Prime Number Generator
You are given two integers S and N. Your task is to generate a list of N prime numbers starting from S. A prime number is a natural number greater than 1 that has no divisors other than 1 and itself. For efficient processing, it is recommended to check for divisibility up to \(\sqrt{num}\) using the mathematical square root optimization.
inputFormat
The input consists of a single line with two space-separated integers: S (the starting value) and N (the number of prime numbers to generate).
outputFormat
Output a single line containing N prime numbers, separated by a single space.
## sample2 5
2 3 5 7 11