function fctrs = factor(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:factor:NonScalarInput');
eml_invariant(coder.const(~coder.internal.eml_option_eq('VariableSizing','DisableInInference')), ...
    'Coder:toolbox:factor_3');
fctrs = eml_primes_core('factor',n(1));
