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


Please Help Members By Posting Answers For Below Questions

Is java good for beginners?

581


What is e in java?

541


What is the use of flag?

583


Give reasons supporting that string is immutable.

496


Why set is used in java?

571






Which is better ascii or unicode?

570


When will you define a method as static in Java?

572


Is call by reference possible in java?

536


What is the maximum size of a string in java?

551


How do you pass by reference?

535


What is the finalize method do?

599


How does the java compiler work?

529


Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.

593


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2373


Can a function return a function?

550