cleaning and method to generate prime list

Signed-off-by: Guillaume George <guillaume.george@etu.utc.fr>