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 / prabhu

Mr Nithi U'r Wrong If it is 2^n-1 than U'r correct
Because a^2 - b^2 = (a+b)*(a-b)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is singleton thread safe in java?

551


What do you mean by compiler?

587


What happens when heap memory is full?

528


How to sort a collection of custom Objects in Java?

604


What is an infinite loop? How infinite loop is declared?

575






Explain the importance of throws keyword in java?

574


What is the difference between overriding and overloading in OOPS.

567


Is java a virus?

536


What is hashmap in java?

573


What are keywords in programming?

570


Why put method is used?

536


Explain the init method?

548


What advantage do java's layout managers provide over traditional windowing systems?

553


Explain scope or life time of local variables in java?

563


What is balanced tree in java?

538