Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralRe: Double Post - Please ignore Pin
#realJSOP23-Sep-08 23:35
mve#realJSOP23-Sep-08 23:35 
QuestionAvoid MessageBox Window using System.Diagnostics.Process Pin
M Riaz Bashir23-Sep-08 21:14
M Riaz Bashir23-Sep-08 21:14 
AnswerRe: Avoid MessageBox Window using System.Diagnostics.Process Pin
Giorgi Dalakishvili23-Sep-08 21:31
mentorGiorgi Dalakishvili23-Sep-08 21:31 
AnswerRe: Avoid MessageBox Window using System.Diagnostics.Process Pin
#realJSOP23-Sep-08 23:38
mve#realJSOP23-Sep-08 23:38 
Questionhow to write prime numbers programe in C# 2005 Pin
vidhish23-Sep-08 20:44
vidhish23-Sep-08 20:44 
AnswerRe: how to write prime numbers programe in C# 2005 Pin
Tamer Oz23-Sep-08 21:33
Tamer Oz23-Sep-08 21:33 
GeneralRe: how to write prime numbers programe in C# 2005 Pin
leppie23-Sep-08 21:37
leppie23-Sep-08 21:37 
GeneralRe: how to write prime numbers programe in C# 2005 Pin
Tamer Oz23-Sep-08 21:52
Tamer Oz23-Sep-08 21:52 
The main purpose of the messages posted here is not directly giving solution or the project. It was just an idea and improvements are up to user. And if the solutions that suggested are at the level of a user, then it can be helpfull.

For your mathematical questions :
1 is not a prime number.
0 is not a prime number.
-1 is not a prime number.

For your logical questions:
ulong can be used too. But i dont think that this is not necesarry for a user that can not search google.

For information with corrections the metod should be like this.

public bool IsPrime(ulong number)
{
if (number < 2)
{
return false;
}
for (ulong i = 2; i < number; i++)
{
if (number % i == 0)
{
return false;
}
}
return true;
}
QuestionRe: how to write prime numbers programe in C# 2005 Pin
Hana SaM7-Oct-08 23:04
Hana SaM7-Oct-08 23:04 
AnswerRe: how to write prime numbers programe in C# 2005 Pin
leppie23-Sep-08 21:34
leppie23-Sep-08 21:34 
AnswerRe: how to write prime numbers programe in C# 2005 Pin
#realJSOP23-Sep-08 23:42
mve#realJSOP23-Sep-08 23:42 
AnswerRe: how to write prime numbers programe in C# 2005 Pin
RugbyLeague24-Sep-08 0:50
RugbyLeague24-Sep-08 0:50 
AnswerRe: how to write prime numbers programe in C# 2005 Pin
darkelv24-Sep-08 1:50
darkelv24-Sep-08 1:50 
GeneralRe: how to write prime numbers programe in C# 2005 Pin
#realJSOP24-Sep-08 9:40
mve#realJSOP24-Sep-08 9:40 
Questioncan anybody tell me that how can i save my all application's work. mean that how can i save the images,circles,rectangle,lines or etl together.. Pin
maifs23-Sep-08 20:32
maifs23-Sep-08 20:32 
AnswerRe: can anybody tell me that how can i save my all application's work. mean that how can i save the images,circles,rectangle,lines or etl together.. Pin
Mark Salsbery24-Sep-08 8:37
Mark Salsbery24-Sep-08 8:37 
QuestionHeaders and Footers in Office 2007 object model Pin
Viram23-Sep-08 20:20
Viram23-Sep-08 20:20 
QuestionExport as PDF file from C# page Pin
r aa j23-Sep-08 20:09
r aa j23-Sep-08 20:09 
Generalcreate family tree with C# visual basic 2005 Pin
jielun23-Sep-08 19:54
jielun23-Sep-08 19:54 
GeneralRe: create family tree with C# visual basic 2005 Pin
John_Adams23-Sep-08 21:43
John_Adams23-Sep-08 21:43 
GeneralRe: create family tree with C# visual basic 2005 Pin
ChandraRam24-Sep-08 0:04
ChandraRam24-Sep-08 0:04 
Questioncreate family tree with C# visual basic 2005 pls help me Pin
jielun23-Sep-08 19:53
jielun23-Sep-08 19:53 
AnswerRe: create family tree with C# visual basic 2005 pls help me Pin
John_Adams23-Sep-08 21:40
John_Adams23-Sep-08 21:40 
QuestionRequirement: How I can get all the applications registered in windows os includes with Administative Tools Pin
apparikiran23-Sep-08 19:53
apparikiran23-Sep-08 19:53 
AnswerRe: Requirement: How I can get all the applications registered in windows os includes with Administative Tools Pin
Tamer Oz23-Sep-08 21:36
Tamer Oz23-Sep-08 21:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.