Is is at all possible to handle numbers larger than 8 places? I’m solving Euler problems, and so dividing it by a factor of 10 is impossible(changes whether it is a prime number).

I don’t think that’s possible, unfortunately. However, read at this discussion. You could be interested:

Use doubles instead of floats.