Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Can we use string in the switch case?

1006


What is polymorphism java example?

967


Explain a few methods of overloading best practices in java?

946


What is a numeric format?

1042


What is the replace tool?

1108


Convert Binary tree to linked list.

1036


What is an example of a conditional statement?

1006


Give few examples of final classes defined in Java API?

1154


what is synchronization and why is it important? : Java thread

1041


What does the “static” keyword mean?

1073


What is the java virtual machine?

1043


How many types of keywords are there?

962


What are the advantages of inner classes?

985


What is the driver class?

988


Explain the private protected method modifier?

936