zoukankan      html  css  js  c++  java
  • 100以内的素数

    public class test

                public static void main(String[] args)

               {  

                        int i,n,k=0;     

                        for (n = 3; n<=100; n++)

                        {        i=2;         

                                while (i<n)

                               {   if (n%i==0)  break;     i++;           }
                               if (i==n)

                              {    

                                 k++;   System.out.print(i+ " ");   

                                 if (k %6==0)  System.out.println();     

                              }  

                        }

             }

    }

  • 相关阅读:
    图像滤波
    直方图histeq
    直方图
    基于灰度变换的图像增强
    图像增强
    图像旋转和缩放
    图像点运算
    像素的连接与联通
    程序员进阶之算法练习(一)
    RxSwift 系列(二)
  • 原文地址:https://www.cnblogs.com/kexiaole/p/6593912.html
Copyright © 2011-2022 走看看