it takes a lot of time for large numbers