Ruby with Qt application to find prime factors of a number.