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 is a blocking method in Java?
Explain the transient field modifier?
Can we override the static methods?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
Can we sort a map in java?
How many times finalize method will be invoked? Who invokes finalize() method in java?
What are peerless components in java programming?
What are the classes of java?
What is visibility mode?
Explain super keyword in java.
What is overriding in java?
What is the difference between compare and compareto in java?
Can we define a package statement after the import statement in java?
What are recursive functions?
Can we initialize the final blank variable?