Let's try this again.
The object of this contest is to make two pieces of code that are anagrams of each other (the two must contain the same bytes in a different order), and they will do the following tasks:
One must test if an inputted number is happy or prime, and output if the number is either (for example, 7
must output happy prime
and 4
must output sad non-prime
, see http://en.wikipedia.org/wiki/Happy_number for details).
The other must output its code size in bytes as a word (a 60-byte program would output sixty
, a 39-byte program would output thirty-nine
).
If any clarification is needed on the rules, don't hesitate to tell me.
This is a code golf competition, so shortest program wins!
/*program1*/program2
and thenprogram1/*program2*/
? I think you should disallow comments. – William Barbosa 5 hours agosixTY
instead ofsixty
(Basically asking if the output should be in all lowercaps or not) ? – Optimizer 3 hours ago