print "enter a number: ";
$in = <>;
sub prime {
for($i=2;$i<($_[0]/2+1);$i++) {
if($_[0]%$i ==0) { return "not prime\n" } }
}
cHJpbnQgImVudGVyIGEgbnVtYmVyOiAiOwoKJGluID0gPD47CmNob21wICRpbjsKCnByaW50ICZwcmltZSgkaW4pOwpwcmludCAiXG4iOwoKc3ViIHByaW1lIHsKICAgIGZvcigkaT0yOyRpPCgkX1swXS8yKzEpOyRpKyspIHsKICAgICAgICBpZigkX1swXSUkaSA9PTApIHsgcmV0dXJuICJub3QgcHJpbWVcbiIgfQogICAgfQoKICAgIHJldHVybiAicHJpbWVcbiI7Cn0=