function p = primes(n)
%MATLAB Code Generation Library Function
% Limitations:
%   1. INT64 and UINT64 inputs are not supported.
%   
%   Copyright 1984-2014 The MathWorks, Inc.
%#codegen

eml_invariant(nargin > 0, ...
    'MATLAB:minrhs');
coder.internal.prefer_const(n);
eml_invariant(isscalar(n) && coder.internal.isBuiltInNumeric(n), ...
    'MATLAB:primes:InputNotScalar', ...
    'IfNotConst','Fail');
eml_invariant(eml_option('VariableSizing'), ...
    'Coder:toolbox:primes_3', ...
    'IfNotConst','Fail');
p = eml_primes_core('primes',n);

