%% Primes Less Than or Equal to an Unsigned Integer

n = uint16(12);
p = primes(n)

% Copyright 2012 The MathWorks, Inc.