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
How do you add spaces in java?
What is string made of?
What is the purpose of the finalize() method?
What do you mean by an interface in java?
what is encapsulation in java? Explain
Does constructor be static?
What is the difference between preparedstatement and statement in java?
Can we call thread start () twice?
What is serialization in java?
Can we extend singleton class in java?
What is the meaning of course?
Explain exception chaining in java?
How will you initialize an Applet?
What is the difference between applet and application?
Which sort is best in java?