+ 1
📌CHALLENGE : THE PRIME SEARCH ©️🤓
Primes are natural numbers which have no other divisors except 1 and itself. An array of Primes is given by : [2, 3, 5, 7, 11, 13, 17, 19, .....] You have to print the Primes corresponding to the index given in input. INPUT: First line of the input contains the index number (i), next line contains number of Primes to be printed (n). OUTPUT: Print the primes based on the given index in series having n terms, separated with comma. Indexes here start from 1 not 0. Also, limit n's value between 0 and 100.
7 Respostas
+ 2
Here's my try ^-^ !!
https://code.sololearn.com/cZ6eCdeHY5lX/?ref=app
+ 3
SAMPLE RUN:
6
5
13, 17, 19, 23, 29
NOTE: Must comment a link of this challenge in your post, so that we can find you easily ! !
.
Happy Coding! 😊
+ 2
Crapy challenge. Daniel's code is bugged out outputs 121=11×11 as prime...
Followinf code solves several challenges - line 7 isbrhe oneliner solution to this one !
https://code.sololearn.com/cLlav8F9tZ6K/?ref=app
+ 1
Similar challenge some weeks ago. Oneliner answer here https://code.sololearn.com/cLlav8F9tZ6K/?ref=app
+ 1
https://code.sololearn.com/cgAKXrHH4NO0/?ref=app