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 does linkedlist work in java?
State one difference between a template class and class template.
What are different types of arrays?
Can variables be used in java without initialization?
What language is pass by reference?
What is method overriding in java ?
What is java argument list?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
What is the purpose of using the java bean?
Can memory leak in java?
Can java object be locked down for exclusive use by a given thread?
What is the equal sign?
What does the @override annotation do?
What is a singleton puppy?
Explain the difference between map and flatmap stream operation?