sorting folders and prime numbers