clear; clc;

x = 21;

for y = 2 : x - 1
    
    y
    if rem(x, y) == 0
        disp("Not a prime.");
        break;
    end
    
end