c# coding for 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 not using the Big-integer
and Exponential Function's.



c# coding for a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is ..

Answer / sreejesh1987

Me too want the code for this...

Is This Answer Correct ?    5 Yes 4 No

Post New Answer

More C Sharp Code Interview Questions

program for string reverse(eg:- i am boy -> boy am i)

8 Answers   Black Pepper, Infosys, Mind Tree,


Write a program to count the number of characters, number of words, number of line in file.

2 Answers   Mind Tree,


Code for Searching for Multiple Matches with the MatchCollection Class?

0 Answers   TCS,


Using C# Write a program that performs the following. The user inputs a number and then enters a series of numbers from 1 to that number. Your program should determine which number (or numbers) is missing or duplicated in the series, if any. For example, if the user entered 5 as the initial number and then entered the following sequences, the results should be as shown. Input Sequence Output ---------------------- --------------- 1 2 3 4 5 Nothing bad However, if 7 were the high number, the user would see the results on the right for the following number entries: Input Sequence Output ---------------------- --------------- 1 3 2 4 5 Missing 6 Missing 7 And if 10 were the high number and the user entered the numbers shown on the left, note the list of missing and duplicate numbers: Input Sequence Output ---------------------- --------------- 1 2 4 7 4 4 5 10 8 2 6 Duplicate 2 ( 2 times) Missing 3 Duplicate 4 ( 3 times ) Missing 9 The program should check the high number that the user inputs to ensure that it does not exceed the size of any array you might be using for storage.

0 Answers  


Code for IP Address Comparison and Conversion in C#?

0 Answers  


"c sharp" code for factorial using static variables

9 Answers  


program to check if a number is "perfect number".

1 Answers   Mind Tree, SoftSol,


Can you declare an array of mixed Types?

1 Answers   HCL,


Create a class called Accounts which has data members like ACCOUNT no, Customer name, Account type, Transaction type (d/w), amount, balance D->Deposit W->Withdrawal If transaction type is deposit call the credit(int amount) and update balance in this method. If transaction type is withdraw call debit(int amt) and update balance. Pass the other information like Account no,name,Account Type through constructor. Call the show data method to display the values.

1 Answers   Cognizant,


IS Array list is generic or non generic

1 Answers  


Give the code for Handling Mouse Events?

0 Answers  


How to Create Files by Using the FileInfo Class?

1 Answers  


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)