Found minimal ratio using prime factors