Converts a number to a string.

Depends on the number's prime factors.