(/VERSIONCHECK 2) (DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Thing|) |UFD-;squareFreePart;2S;1|)) (DECLAIM (FTYPE (FUNCTION (|%Thing| |%Shell|) |%Boolean|) |UFD-;prime?;SB;2|)) (DEFUN |UFD-;squareFreePart;2S;1| (|x| $) (PROG (|s| |f| #0=#:G1419 #1=#:G1406 #2=#:G1404 #3=#:G1405) (RETURN (SEQ (SPADCALL (SPADCALL (LETT |s| (SPADCALL |x| (|getShellEntry| $ 8)) |UFD-;squareFreePart;2S;1|) (|getShellEntry| $ 10)) (PROGN (LETT #3# NIL |UFD-;squareFreePart;2S;1|) (SEQ (LETT |f| NIL |UFD-;squareFreePart;2S;1|) (LETT #0# (SPADCALL |s| (|getShellEntry| $ 14)) |UFD-;squareFreePart;2S;1|) G190 (COND ((OR (ATOM #0#) (PROGN (SETQ |f| (CAR #0#)) NIL)) (GO G191))) (PROGN (LETT #1# (CAR |f|) |UFD-;squareFreePart;2S;1|) (COND (#3# (LETT #2# (SPADCALL #2# #1# (|getShellEntry| $ 15)) |UFD-;squareFreePart;2S;1|)) ('T (PROGN (LETT #2# #1# |UFD-;squareFreePart;2S;1|) (LETT #3# 'T |UFD-;squareFreePart;2S;1|))))) (SETQ #0# (CDR #0#)) (GO G190) G191 (EXIT NIL)) (COND (#3# #2#) ('T (|spadConstant| $ 16)))) (|getShellEntry| $ 15)))))) (DEFUN |UFD-;prime?;SB;2| (|x| $) (EQL (LENGTH (SPADCALL (SPADCALL |x| (|getShellEntry| $ 18)) (|getShellEntry| $ 22))) 1)) (DEFUN |UniqueFactorizationDomain&| (|#1|) (LET* ((|dv$1| (|devaluate| |#1|)) (|dv$| (LIST '|UniqueFactorizationDomain&| |dv$1|)) ($ (|newShell| 29)) (|pv$| (|buildPredVector| 0 0 NIL))) (|setShellEntry| $ 0 |dv$|) (|setShellEntry| $ 3 |pv$|) (|stuffDomainSlots| $) (|setShellEntry| $ 6 |#1|) $)) (MAKEPROP '|UniqueFactorizationDomain&| '|infovec| (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Factored| $) (0 . |squareFree|) (|Factored| 6) (5 . |unit|) (|Integer|) (|Record| (|:| |factor| 6) (|:| |exponent| 11)) (|List| 12) (10 . |factors|) (15 . *) (21 . |One|) |UFD-;squareFreePart;2S;1| (25 . |factor|) (|Union| '"nil" '"sqfr" '"irred" '"prime") (|Record| (|:| |flg| 19) (|:| |fctr| 6) (|:| |xpnt| 11)) (|List| 20) (30 . |factorList|) (|NonNegativeInteger|) (35 . |#|) (40 . |One|) (|Boolean|) (44 . =) |UFD-;prime?;SB;2|) '#(|squareFreePart| 50 |prime?| 55) 'NIL (CONS (|makeByteWordVec2| 1 'NIL) (CONS '#() (CONS '#() (|makeByteWordVec2| 28 '(1 6 7 0 8 1 9 6 0 10 1 9 13 0 14 2 6 0 0 0 15 0 6 0 16 1 6 7 0 18 1 9 21 0 22 1 21 23 0 24 0 23 0 25 2 23 26 0 0 27 1 0 0 0 17 1 0 26 0 28))))) '|lookupComplete|))