Find the sum of digits of number if the inputted number is prime, if number is not prime then print the nearest prime number. For example: if user inputs number = 17 then the output would be = 1 + 7 =...


Find the sum of digits of number if the inputted number is prime, if number is not prime then print the nearest prime number.


            For example: if user inputs number = 17 then the output would be = 1 + 7 = 8
                                    if user inputs number = 20 then the output would be = 23 (next prime to



Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here