LOLCode

Primality test in LOLcode, for the lulz...

BTW prime.lol
CAN HAS STDIO?

HAI 1.2
	HOW DUZ I SEE_IF_PRIME YR NUMBER

		I HAS A DIVISER ITZ 2
		I HAS A BOOL ITZ FAIL

		IM IN YR LOOP
			BOTH SAEM 0 MOD OF NUMBER DIVISER, O RLY?
				YA RLY, GTFO
			OIC

			DIVISER R SUM OF DIVISER AN 1

			BOTH SAEM DIVISER NUMBER, O RLY?
			YA RLY
				BOOL R WIN
				GTFO
			OIC
		IM OUTTA YR LOOP

		FOUND YR BOOL
	IF U SAY SO

	I HAS A NUMBER
	GIMMEH NUMBER
	NUMBER IS NOW A NUMBR

	SEE_IF_PRIME NUMBER, O RLY?
	YA RLY
		VISIBLE "WIN"
	NO WAI
		VISIBLE "FAIL"
	OIC