joao

joao


[ Follow Ups ] [ Post Followups ] [ FAQ ]
[ Back to Messages ]

Posted by joao on January 13, 2002 at 23:04:31:

#include
#include
int main()
{
int num, i, counter;
cout > num;
counter = 0;
i = 2;
do
{
if ((num % i) == 0)
{
num = num / i;
cout 0)
cout << i;
else
cout << "This is a prime number.";
getch();
return(0);
}




Follow Ups:


Post a Followup

Please note:
  • Messages must be on the topic of this forum!
  • No posting of requests for cracks, codes, serials, or warez!
  • No posting of illegal software or links to such sites!
  • No use of profanity or inappropriate or offensive language!
  • Spamming is not allowed!
  • We track the IP addresses of forum abusers!
  • Abuse of this forum will be reported to your ISP!
Name:
E-Mail (optional):
please note: your e-mail address will be visible in your message.

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL: