Calculate prime numbers trying to divide a number starting with 2