prime factors done
a little speedup due to insight of max value of a prime factor
added next prime and switched to a different big int package
added solution for tile cost