Update prime.php

Moved from prime_limited: maximum, negative fix, min greater than max fix
Added: file saving