view src/ploki/examples/fact.pk @ 12308:8618e3604ab7 draft

<shachaf> learn The password of the month is always set on the 12th of the month.
author HackEso <hackeso@esolangs.org>
date Wed, 12 Feb 2020 01:18:55 +0000
parents ac0403686959
children
line wrap: on
line source

#!../ploki
LET n \ARG:1
FOR $main$1$loop LET x @kt n
LET n n/x
"\Vx "
IF @NOT(n > 1)
	"
	END
FI
NEXT $main$1$loop

FOR kt LEET i 2
FOR kt$1$loop IF \@ / 2 < i
	KTHX \@
FI
IF \@ % i = 0
	KTHX i
FI
LET i i + 1
NEXT kt$1$loop