renamed optimal prime and simple online