Click here to Skip to main content
15,919,613 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: comipler construction Pin
molesworth10-Sep-09 7:27
molesworth10-Sep-09 7:27 
AnswerRe: comipler construction Pin
PIEBALDconsult24-Sep-09 17:44
mvePIEBALDconsult24-Sep-09 17:44 
AnswerRe: Help need,Spanning Tree Pin
Moreno Airoldi8-Sep-09 9:18
Moreno Airoldi8-Sep-09 9:18 
Questionhelp needed for loops Pin
aihcezs1444-Sep-09 0:11
aihcezs1444-Sep-09 0:11 
AnswerRe: help needed for loops Pin
Richard MacCutchan4-Sep-09 0:18
mveRichard MacCutchan4-Sep-09 0:18 
GeneralRe: help needed for loops Pin
aihcezs1444-Sep-09 0:37
aihcezs1444-Sep-09 0:37 
GeneralRe: help needed for loops Pin
Richard MacCutchan4-Sep-09 0:50
mveRichard MacCutchan4-Sep-09 0:50 
GeneralRe: help needed for loops Pin
aihcezs1444-Sep-09 1:00
aihcezs1444-Sep-09 1:00 
#include <iostream>
#include <cmath>
#include <conio.h>
using namespace std;

int main()
{
int num, n, remainder, prime, nonprime;

remainder = num % n;

for(num=2; num<=100; num++)
{

for(n=2; n<=sqrt(num); n++)
{
if(remainder==0)
break;
else
num=prime;
}
cout<<prime<<" "<<endl;

}

getche();
return 0;
}
GeneralRe: help needed for loops Pin
Luc Pattyn4-Sep-09 1:09
sitebuilderLuc Pattyn4-Sep-09 1:09 
GeneralRe: help needed for loops [modified] Pin
aihcezs1444-Sep-09 2:13
aihcezs1444-Sep-09 2:13 
GeneralRe: help needed for loops Pin
Luc Pattyn4-Sep-09 2:45
sitebuilderLuc Pattyn4-Sep-09 2:45 
GeneralRe: help needed for loops Pin
harold aptroot4-Sep-09 3:23
harold aptroot4-Sep-09 3:23 
QuestionRandom functions family Pin
Quake2Player30-Aug-09 14:31
Quake2Player30-Aug-09 14:31 
AnswerRe: Random functions family Pin
Nuri Ismail31-Aug-09 4:10
Nuri Ismail31-Aug-09 4:10 
QuestionI need help decrypting an encrypted text (I also got cleartext examples) Pin
SimpleData30-Aug-09 2:43
SimpleData30-Aug-09 2:43 
JokeRe: I need help decrypting an encrypted text (I also got cleartext examples) Pin
annathor30-Aug-09 23:23
annathor30-Aug-09 23:23 
GeneralRe: I need help decrypting an encrypted text (I also got cleartext examples) Pin
SimpleData30-Aug-09 23:24
SimpleData30-Aug-09 23:24 
GeneralRe: I need help decrypting an encrypted text (I also got cleartext examples) Pin
Richard MacCutchan31-Aug-09 7:29
mveRichard MacCutchan31-Aug-09 7:29 
GeneralRe: I need help decrypting an encrypted text (I also got cleartext examples) Pin
SimpleData31-Aug-09 8:03
SimpleData31-Aug-09 8:03 
GeneralRe: I need help decrypting an encrypted text (I also got cleartext examples) Pin
Richard MacCutchan31-Aug-09 9:21
mveRichard MacCutchan31-Aug-09 9:21 
GeneralRe: I need help decrypting an encrypted text (I also got cleartext examples) Pin
SimpleData31-Aug-09 9:31
SimpleData31-Aug-09 9:31 
AnswerRe: I need help decrypting an encrypted text (I also got cleartext examples) Pin
supercat931-Aug-09 12:28
supercat931-Aug-09 12:28 
GeneralRe: I need help decrypting an encrypted text (I also got cleartext examples) [modified] Pin
annathor31-Aug-09 21:34
annathor31-Aug-09 21:34 
GeneralRe: I need help decrypting an encrypted text (I also got cleartext examples) Pin
SimpleData31-Aug-09 23:33
SimpleData31-Aug-09 23:33 
AnswerRe: I need help decrypting an encrypted text (I also got cleartext examples) Pin
mbyamukama1-Sep-09 21:09
mbyamukama1-Sep-09 21:09 

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.