Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

62ms

Posted by moodyjade at 2007-12-03 18:52:58 on Problem 2262
可以先生成1-1000000之间所有素数

for(i=2;i<1000;i++){
		if( a[i]==true ){
			for( j=i;i*j<1000000;j++){
				a[i*j]=false;
			}
		}
	}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator