Fixed prime? and quicksort