朴泊斋

Damocles的思想笔记
    <<  virtualized address translation | 首页 | Universal Hashing  >>
  • Fermat's little theorem - [马塞马题科思]

    2009-10-19

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://damocles.blogbus.com/logs/48736469.html

    Proof of Fermat's little theorem(From Algorithms by Dasgupta, C. H. Papadimitriou, and U. V. Vazirani)

    用Fermat's little theorem来判断primality

    1. 素数都是满足Fermat's little theorem的

    2. 满足Fermat's little theorem的不一定是素数

        (1)某些合数只在取特殊的a的时候,满足Fermat's little theorem,如341,这些合数可以通过random取a来做多次判断来剔除

        (2)某些合数就是满足Fermat's little theorem的,这被称为Carmichael Number,最小的数是561,这些数没法剔除,但是很少很少,遇到算你倒霉

     


    历史上的今天:

    Shadow password 2008-10-19

    随机文章:

    Erdős number 2009-08-26
    Implement system call with sysenter/sysexit 2009-03-24
    Johnson's algorithm 2009-02-12
    海之城--青岛 2008-07-15
    趣题:直尺不够长时如何作出连接两点的直线? 2008-05-27

    收藏到:Del.icio.us




    Tag:Fermat´s little theorem
    引用地址:
    Gu Zhongshu 发表于18:50:54 | 编辑 | 继续话题 | 转发 | 分享 0

搜索

最新日志

  • Wave Beijing
  • 美国公民中国签证收费标准
  • 看完之后,不禁内牛满面
  • 提高linux分辨率的方法
  • Universal Hashing
  • Fermat's little theorem
  • virtualized address translation
  • 请为我投票
  • 大庆
  • Use virtual machine manager to run JOS
全部日志>>

最新评论

  • Ceci:我觉得这很赞 哈哈 下大雨的那次是不是机场封了然后我改...
  • Ceci:认真你就输了。。。哈哈哈...
  • Ceci:你也知道的 就这么回事儿 何必放在心上。。。...
  • 山寨手机:学习了~~~
  • cheap uggs:路过~支持个~
  • sunglasses:踩
  • xuanxuan:恩,这纪录片的确不错~~什么来历?(xuanxuan)...
  • 囧:提前打飞机?强大。
  • Ceci:我觉得今天北京看上去空气质量很差。。。 尤其是坦克冒黑...
  • Guanqun:我刚开始准备把网络的给做掉。...
  • RSS 什么是RSS?
    用IM提醒我内容更新
    订阅到QQ邮箱
    订阅到鲜果阅读器
    订阅到Google阅读器
    订阅到抓虾阅读器
  • 《城客》第四期:创意之城
    博客大巴
    博客大巴使用指南
    博客大巴模板中心
    免费注册博客大巴
    一键博客搬家工具
    中文互动杂志城客
Copyright © 2002-2009 BlogBus.com, All Rights Reserved. 博客大巴 版权所有
博客大巴模板设计:乌镇·印象II | 作者: 饭团