correct primeArrayIndexes

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