lab4: Peterson algorithm and prime numbers