java program that takes a 3 digit number n and finds out
whether
the number 2^n + 1 is prime, or if it is not prime find out
its
factors.
Answer Posted / sibiraj
if n=3,then it is not prime .the no. of factors are 3.
(2^3+1 = 9.9 is not prime. 9 has the factors 1,3,9.)
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What type of variable is error flag?
Can you give few examples of final classes defined in java api?
What is the locale class in java programming?
Does chrome use java?
What is a text string?
Can a hashset contain duplicates java?
What are the common uses of "this" keyword in java ?
Explain about serializable interface in java?
What is comparable and comparator interface? List their differences
Differentiate between postfix and prefix operators in java.
when should you use stringbuilder class in a program?
What does @override mean?
How to Sort Strings which are given in List and display in ascending order without using java api.
What is the difference between path and classpath variables?
hr interview how many minutes asking question