John P
2011-10-12 22:18:12 UTC
(cond
((not (numberp N)) nil) ;;;Handles Input
((not (plusp N)) nil) ;;;Handles Input
((zerop N) 0)
( t (cons (binaryize (/ N 2)) (mod N 2)))))
This is what I came up with and I can't figure out why it's not working, I'm very new to lisp and I just wrote it out like I would in C++. Any help would be greatly appreciated.