Sum of prime index values in array in c# | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Sum of prime index values in array in c#

Input 1={ 2,3,4,6,12,13,20,17} Output =40

17th May 2017, 11:48 AM
ranisanthoshi mattapalli
ranisanthoshi mattapalli - avatar
1 Answer
+ 7
lol. I read Lukas Answer in combination with James.. my brain sometimes sheesh "In which language is this a question?"
17th May 2017, 12:03 PM
jay
jay - avatar