Using a different mechanism for finding N.
Still receives time limit error