function isp = isprime(X)
%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');
eml_invariant(coder.internal.isBuiltInNumeric(X), ...
    'MATLAB:isprime:InputNotPosInt');
eml_invariant(coder.const(~coder.internal.eml_option_eq('VariableSizing','DisableInInference')), ...
    'Coder:toolbox:isprime_3');
isp = eml_primes_core('isprime',X);
