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 a blocking method in Java?

1137


Explain the transient field modifier?

965


Can we override the static methods?

977


take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).

1931


Can we sort a map in java?

977


How many times finalize method will be invoked? Who invokes finalize() method in java?

965


What are peerless components in java programming?

962


What are the classes of java?

922


What is visibility mode?

898


Explain super keyword in java.

994


What is overriding in java?

991


What is the difference between compare and compareto in java?

951


Can we define a package statement after the import statement in java?

1020


What are recursive functions?

989


Can we initialize the final blank variable?

1034