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


Please Help Members By Posting Answers For Below Questions

What is break and continue statement?

1070


Is a class subclass of itself?

1073


How do you compare arrays in java?

928


What are the Static and Dynamic Variables? Differentiate them.

1094


How does remove work in java?

948


What is autoboxing in java?

1046


Are maps ordered java?

935


What is difference between overloading and overriding in java?

1006


Is break statement can be used as labels in java?

947


How do singleton patterns work?

954


What is the difference between choice and list?

1079


What is the loop in java?

1114


What is difference between jdk,jre and jvm?

1105


What is the lifetime and scope of a variable?

988


What is meant by memory leak?

1054