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
Code for Method of Handling Factorials of Any Size?
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
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.
how to take time as input in the format (12:02:13) from user so that controls remains between these columns?
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!!!)
write a program to perform generic sort in arrays?
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
i don't know about working of nested for loop can any one help me
write a function that reverse the elements of an array in place.The function must accept only one pointer value and return void.
write a program that can LOCATE and INSERT elements in array using c++ programming languages.
write a program to convert temperature from fa height into celcius and vise versa,use modular programming
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.
Code for Two Classes for Doing Gzip in Memory?
Code for Easily Using Hash Table?
Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.