Help me please.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Help me please..

Create a function which receives a pointer of array as a parameter and calculates the sum of prime numbers and sum of non_prime numbers in that array. Then compares them to find out which one is larger (sum of prime or sum of non_prime). Return both sum of prime and sum of non_prime numbers also and print those in the main function.

27th Apr 2022, 3:48 AM
SABBIR
SABBIR - avatar
1 Answer
+ 2
Where is your code? Post a link to what you have tried so far, and explain where you are having trouble.
27th Apr 2022, 1:15 PM
Brian
Brian - avatar