编程求3~100之间的所有素数(质数)并统计个数

[复制链接]
查看11 | 回复2 | 2013-7-31 19:54:18 | 显示全部楼层 |阅读模式
c# form.cs 代码如下using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO;namespace WindowsFormsApplication1{
public partial class Form1 : Form
{
public F...
回复

使用道具 举报

千问 | 2013-7-31 19:54:18 | 显示全部楼层
class Prime+888{public static void main(String args[]){int i;int j;for(j=3;jj/2){System.out.println(""+j+"是素数");}}}}...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行