fixed minor one off bug in prob1.pl
got prob2 solved