answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How do you write java program Print sum of prime digits of s number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Program for print prime all number from 1 to 100 in foxpro?

Prime numbers are numbers that are only divisible by themselves and the number 1. You can write a program to print all prime numbers from 1 to 100 in FoxPro.


What is a prime number with identical digits?

A prime number with identical digits is 11.


A prime number with two identical digits?

The number 11 is prime and has two identical digits.


Does reversing the order of the digits of a two digit prime number always result in a prime number?

No, reversing the order of the digits of a two-digit prime number does not always result in a prime number.


What is the greatest 2 digit prime number that each of the 2 digits are prime and the 2 digits sum is prime as well?

The number is 23.


What is the lowest prime number that has all of the numbers prime?

The smallest prime number in which all of the digits are also prime is 2.The smallest multi-digit prime number in which all of the digits are also prime is 23.


What are prime digits and composite digits?

It would probably refer to a digit that is a prime number, or a composite number. Note that mathematicians normally talk about prime and composite NUMBERS, not individual digits.


What is the largest two-digit number that is prime and has prime numbers for both of its digits?

73 is the largest two-digit number that is prime and has prime numbers for both of its digits.


What is the next year in which all its digits add up to a prime number?

2014 ( The sum of the digits = 7, a prime number )


What is the smallest two-digits prime number whose digits are also prime themselves?

23


How do you find prime no in gwbasic program?

10 input "enter a no."; n 20 for i = 1 to n 30 if n mod i = 0 then c = c +1 40 next i 50 if c = 2 then print "prime number" else print "not a prime number" 60 end


What is the largest prime number that has 4 digits and begins with a 1?

The largest prime number that has 4 digits and begins with a 1 is 1,999.