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 / siva prasad
hi,
if n is 3 digit no.Then 2^n+1 is not a prime no.The no.of
factors r coming.
Ex: n=100 then 2^100=1.2676506002282294E30 .
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Can we use string in the switch case?
What is polymorphism java example?
Explain a few methods of overloading best practices in java?
What is a numeric format?
What is the replace tool?
Convert Binary tree to linked list.
What is an example of a conditional statement?
Give few examples of final classes defined in Java API?
what is synchronization and why is it important? : Java thread
What does the “static” keyword mean?
What is the java virtual machine?
How many types of keywords are there?
What are the advantages of inner classes?
What is the driver class?
Explain the private protected method modifier?