Non-Multiples of 2 3 5
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Write a program which reads a nonnegative integer n and prints the first n nonnegative integers that are not divisible by 2, 3 or 5, in ascending order.
Input
A nonnegative integer n.
Output
Print the first n nonnegative integers that are not divisible by 2, 3 or 5, separated by spaces.
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 49%