EXAPUNKS

EXAPUNKS

View Stats:
Question on the Holman Dynamics/CCN level
I assumed what I was looking for was 16 numbers between -9999's (or a -9999 and the end of the file) but the only 16-digit sequence between -9999's gets me a sum of 56 after doubling the odds and subtracting numbers. Can any unbroken sequence of 16 single digits be the card number, or am I doing my math wrong for validation?
< >
Showing 1-4 of 4 comments
Any unbroken strong of 16 digits can be a card number. Press F1 and find the solution in the sequence for debugging!
Yup, it could be any consecutive 16 digits, which do not contain -9999.

My approach is to search the file 16 times for -9999 and jump to the start of that loop if I do. Once I have found 16 consecutive numbers, that are not -9999, I jump 16 back and do the validation.

On success, you've found it, and it's housekeeping from there. Otherwise, restart the -9999 search loop, just one position further.

If you want to test if it's your validation, just check the solution, create a file that contains that string, and run your validation algorithm on that file.

(That way you split the searching part from the validation part)
I came back to it and started a new solution with the whole "it can be any set of 16 digits" and made a really hacky thing that abuses @REP super hard. I just throw out every set of 16 consecutive numbers to a new EXA that checks it for having -9999 as part of the validation. It's really slow and bulky, but it works...
Originally posted by Sunset Moth:
I came back to it and started a new solution with the whole "it can be any set of 16 digits" and made a really hacky thing that abuses @REP super hard. I just throw out every set of 16 consecutive numbers to a new EXA that checks it for having -9999 as part of the validation. It's really slow and bulky, but it works...
Macro abuse isn't really a thing. It's no more abuse than manually copying the part of the code it applies to. Besides, what works works.
< >
Showing 1-4 of 4 comments
Per page: 1530 50