this works out the prime factorisation of a number. If you choose a prime number then please choose one thats less than 548. This won't work for numbers with prime factors greater than 547.
this was to help me write it in java