【文件属性】:
文件名称:素数查找器
文件大小:212KB
文件格式:RAR
更新时间:2017-12-03 14:58:01
C++
素数 cpp : Defines the entry point for the console application
#include "stdafx h"
#include <stdio h>
#include<iostream h>
void main
{
int i j;
int x;
cin>>x;
for i 1;i< x;++i
{
for j 2;j<i;++j
{
if i%j
{
break;
}
}
if i j
{
printf "%d " i ;
}
}
}"> 素数 cpp : Defines the entry point for the console application
#include "stdafx h"
#include <stdio h>
#include<iostream h>
void main
{
int i j;
int x;
cin>>x;
for i 1;i< x;++i
{
for j 2;j<i;++j
{
if i%j [更多]
【文件预览】:
素数
----素数.plg(1KB)
----素数.cpp(432B)
----Debug()
--------vc60.pdb(68KB)
--------素数.obj(3KB)
--------素数.exe(208KB)
--------素数.ilk(238KB)
--------素数.pch(183KB)
--------vc60.idb(49KB)
--------StdAfx.obj(2KB)
--------素数.pdb(505KB)
----素数.dsw(516B)
----素数.dsp(4KB)
----ReadMe.txt(1KB)
----素数.opt(48KB)
----StdAfx.cpp(291B)
----素数.ncb(41KB)
----StdAfx.h(667B)