We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've been doing the project euler challenges and have written a program to determine the prime factors of a given number. To solve the task, I need to input a number whose value exceeds the range of an 'int'.
I've modified my functions to handle a 'long' type, but when I assign the value, it says that the 'literal' still exceeds the range of an 'int', despite declaring it as a type 'long'. The reference section on type 'long' says that processing functions don't use this datatype, so i'm kind of stuck on what to do now.
Any help would be very appreciated.
PS: The site explicitly says not to post solutions to problems anywhere to discourage easy solution finding, so for that reason I didn't include any code. Either way, I think this question doesn't pertain to the actual code, but rather to advice on how to handle 'long' types.