%% Find Primitive Roots Modulo 15
% Create a row vector containing integers from –15 to 15. Find the integers that are primitive roots modulo 15.

G = -15:15;
Z = G(isPrimitiveRoot(G,15))

% The integer 15 has no primitive roots.
%
% Copyright 2019 The MathWorks, Inc.