clc 
clear

for a=3:100
    m=0;
    for n=2:a-1
        if (a/n==floor(a/n))
            m=1;
        end
    end
    
    if m == 0
        fprintf('%d is prime.\n',a)
    end
end
