Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums



Programming Languages A Place for windows applications programs and programmers .

Programming Languages Thread, Prime number in Programming , WebDesign & Development; Hey guys i've been trying to program this question from a past year competition. The question is : A prime ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=23753


Reply
 
 
Senior Member

Reply With Quote
 
Join Date: Dec 2008
Posts: 18,119
31-01-2009, 05:21 PM
 
Hey guys i've been trying to program this question from a past year competition. The question is : A prime number is a natural number which has exactly two distinct natural number divisors: 1 and itself. The first prime number is 2. Can you write...

<div>Hey guys i've been trying to program this question from a past year competition. The question is :
A prime number is a natural number which has exactly two distinct natural number divisors:
1 and itself. The first prime number is 2. Can you write a program that computes the nth prime
number, given a number n >prime;
ofstream write;
write.open("C:\\Users\\User\\Documents\\answer.txt ");
int num[100], b, c;
bool check;
b=0;
switch(prime)
{
case 1: {write
 
 
 
Reply

Programming Languages Thread, Prime number in Programming , WebDesign & Development; Hey guys i've been trying to program this question from a past year competition. The question is : A prime ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=23753


Bookmarks

Tags
number, prime


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On