101
24
Despite your protest, you have been put to work by your boss on a program that takes a single unsigned integer as input and prints the string "prime" if that integer is prime and "not prime" if it isn't. You may choose which language you do this in, as long as the resulting program is short; your boss very much appreciates a low character count. (He will actually manually count the characters after he prints out the source code.)
So you better get to it, the lowest character count wins.
The fun part
This is just between you and me, but your program should also be valid in another language. In this language though, it should print the string "If the boss finds this, I quit.". Make sure that your boss does not figure out there is a hidden insult when reading the code over and over as he keeps forgetting if he'd counted to 17 or 18 so far. For that reason you may not use any of the words in "the boss finds this quit" in part of the code nor can you use and anagrams of those 5 words.
Bonus challenge which I have created a bounty for
Write a program that actually looks like it just solves the first question to the untrained eye and doesn't seem to contain unnecessary characters. This includes comments and segments of code that obviously don't contribute anything. Ideally, a layman would believe that your program is actually as short as it can be without being unmanagable. A helpful comment here and there is okay though.
The rules for the bonus challenge are a bit looser, instead of being judged on easily measurable criteria, your program will be judged more on how it comes accross to me (and the voters of course)
I will be the final judge of which entry comes closest to deserving this bounty.
Edit:
After a few minutes of your boss counting, he had one of your colleages write a character counting program for him. So even characters that aren't visible count towards your character count.
38Well, Whitespace people will have an easy time here. – Ingo Bürk – 2014-08-26T18:25:39.103
10Unfortunately, the shortest possible Whitespace program which prints that message is 372 characters. – Three If By Whiskey – 2014-08-26T19:02:36.587
1Do we need to print a trailing newline? – Martin Ender – 2014-08-26T19:46:15.933
37But the boss will print it out and count the characters. Trailing whitespace won't count. – Joshua – 2014-08-26T19:50:31.773
1@Martin no, no whitespace required. – overactor – 2014-08-26T19:56:21.790
6The bounty challenge sounds interesting but will no doubt be won very trivially by a "well documented and indented" program in an arbitrary language (with the hidden one being whitespace). – Martin Ender – 2014-08-26T20:31:23.307
1@MartinBüttner Since the shortest possible whitespace program that does this is apparently 372 characters, I doubt this program will satisfy a boss who wants a short program. I'll add that it also needs to seem like it couldn't be much shorter to a layman. – overactor – 2014-08-26T20:39:53.900
5So far, all of the entries are obviously not serious programs (random gibberish, etc.). It would be really interesting if someone made a polyglot (that doesn't include Whitespace, of course) that actually looked reasonable at first glance (even if it was really, really long). – Doorknob – 2014-08-26T21:36:19.423
3@Doorknob that'd be easier if it was popularity contest. Since hiding it is not required and it's code golf, the current kind of submission makes more sense. I agree, though, that that'd be interesting too. – Ingo Bürk – 2014-08-27T03:44:43.207
2@ThreeIfByWhiskey you can't prove it – pqnet – 2014-08-27T09:23:49.950
1@pqnet I can prove I was wrong, though. See my answer below for a 330-character approach that I suspect might be optimal. – Three If By Whiskey – 2014-08-27T14:20:51.590
1@overactor Can you please clarify whether whitespace and/or newlines count towards the character count? – Ingo Bürk – 2014-08-28T15:21:02.573
1@IngoBürk I added an edit to the question. – overactor – 2014-08-28T15:30:04.057