% p is the positive integer.
% ans 1 for prime, 0 for non-prime.
min ( rem (p, [2:p-1]) )
One statement Solution in Matlab
所有跟帖:
• Ahhhhh :) -botong- ♂ (0 bytes) () 07/26/2009 postreply 12:15:18
• how about this -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