- Language: Prolog.
- Algorithm Used: Luhn Algorithm.
- Using this code is at your own risk.
- SWI-Prolog is required.
- clone this project.
swipl
- load project
?- ['./cc_gen.pl'].
Allowed Options:
1. ?- gen_cc_num(?Atom).
2. ?- gen_cc_num(+List,?Atom).
gen_cc_num(Card).
gen_cc_num([4,5],Card).
- use
;
for next option.