0

How to get comma separated output?

in Java:any input(must be prime),it will return from 2,3,5...input suppose input=13 output:(2,3,5,7,11,13)

11th Aug 2018, 8:12 PM
Surajit Das
Surajit Das - avatar
3 odpowiedzi
0
I got output using for loop and a inside if else loop for determining prime..but unable to get CSV output...
11th Aug 2018, 8:14 PM
Surajit Das
Surajit Das - avatar
0
for me input 7 output:2 3 5 7
11th Aug 2018, 8:15 PM
Surajit Das
Surajit Das - avatar
0
thank you Robin.
12th Aug 2018, 4:39 AM
Surajit Das
Surajit Das - avatar