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
Explain the different forms of polymorphism?
How do you sort data in java?
Does importing a package imports its sub-packages as well in java?
What is a line separator in java?
What is the difference between throw and throws in java?
Which method must be implemented by all threads?
What is parsing in grammar?
What is the difference between the size and capacity of a vector?
When does an object becomes eligible for garbage collection in java?
What is difference between length and length() method in java ?
What is a pattern what is an anti pattern?
how come we know the object is no more used in the class?
worst case complexities of Quick sort and Merge sort.
What are alternatives to java serialization?
How list contains works in java?