+ 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.

10th Feb 2018, 7:49 PM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar
7 Réponses
12th Feb 2018, 12:00 AM
Khaled Tayachi
Khaled Tayachi - avatar
+ 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! 😊
10th Feb 2018, 7:50 PM
Çůřîöş ßąšäñț 🇮🇳
Çůřîöş ßąšäñț 🇮🇳 - avatar
10th Feb 2018, 9:22 PM
Tim Millar
Tim Millar - avatar
+ 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
12th Feb 2018, 7:13 AM
VcC
VcC - avatar
+ 1
Similar challenge some weeks ago. Oneliner answer here https://code.sololearn.com/cLlav8F9tZ6K/?ref=app
10th Feb 2018, 8:31 PM
VcC
VcC - avatar
+ 1
https://code.sololearn.com/cgAKXrHH4NO0/?ref=app
10th Feb 2018, 8:40 PM
Alex
Alex - avatar