KPRIME problem