my code is in the above mentioned link can some one please point out what is wrong the message on the website just shows the word"ERROR" no even what kind of error just error without a compiler message
Prateek loves candy error
I have edited your code…Try to submit it now…
your code ran perfectly thank you! but can you explain me where i went wrong?
The approach you were trying to use was little bit wrong… In the edited code… firstly I have created a primeseive and then I had stored all the prime numbers in the array itself… tht is I have stored the values in primearray itself… and then after that just traverse that array itself…