One statement Solution in Matlab

来源: HavingFun2 2009-07-26 11:18:03 [] [旧帖] [给我悄悄话] 本文已被阅读: 次 (99 bytes)
% p is the positive integer.
% ans 1 for prime, 0 for non-prime.

min ( rem (p, [2:p-1]) )

所有跟帖: 

Ahhhhh :) -botong- 给 botong 发送悄悄话 botong 的博客首页 (0 bytes) () 07/26/2009 postreply 12:15:18

how about this -dynamic- 给 dynamic 发送悄悄话 (10 bytes) () 07/26/2009 postreply 21:11:51

Haskell 回复:One statement Solution in Matlab -火球魔法- 给 火球魔法 发送悄悄话 火球魔法 的博客首页 (40 bytes) () 08/06/2009 postreply 19:03:53

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”