Write a 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 / salma

i also face sthe same question please send me the full code

Is This Answer Correct ?    10 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Code for Method of Handling Factorials of Any Size?

2008


We need to write the function to check the password entered is correct or not based on the following conditions.. a) It must have atleast one lower case character and one digit. b)It must not have any Upper case characters and any special characters c) length should be b/w 5-12. d) It should not have any same immediate patterns like abcanan1 : not acceptable coz of an an pattern abc11se: not acceptable, coz of pattern 11 123sd123 : acceptable, as not immediate pattern adfasdsdf : not acceptable, as no digits Aasdfasd12: not acceptable, as have uppercase character

3957


Ask the user to input three positive integers M, N and q. Make the 2 dimensional array of integers with size MxN, where all the elements of I (I = 1,…,M) line will be members of geometrical progression with first element equal to the number of line (I) and denominator q.

3397


how to take time as input in the format (12:02:13) from user so that controls remains between these columns?

1827


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

3276






write a program to perform generic sort in arrays?

2633


write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used

4310


i don't know about working of nested for loop can any one help me

1794


write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.

3964


write a program that can LOCATE and INSERT elements in array using c++ programming languages.

3445


write a program to convert temperature from fa height into celcius and vise versa,use modular programming

2443


Implement a command console for changing settings on a particular object. The command console should allow you to enter a string and will return the response (very similar to a terminal session). The commands are as follows: SET propertyname=newvalue will change the target object’s member named “propertyname” to have a value equal to “newvalue”. If the input value is incompatible (i.e. an int being set to a string), print out an appropriate error message. GET propertyname will print out the current value of the target object’s member named “propertyname”. GET * will print out a list of all target object members and their current values. The system should be extensible for future commands and should accept an arbitrary object, such that another developer could insert another object into the system and rely on the command console to get and set the properties correctly.

3400


Code for Two Classes for Doing Gzip in Memory?

2814


Code for Easily Using Hash Table?

2393


Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.

4579