apparently there is also an unintended solution, that I discovered by accident
using pickaxe on element X in your inventory factors it into random small primes + a zero stone that can be played