Proposed Question
Triskaidekaphobic Primes
It is known that a certain number, which lies between 12 and 14, brings bad luck. The Church of Triskaidekaphobia (CoTDP) asserts that the key to salvation is avoiding this number in all situations, such as numbering floors, license plates, space shuttle missions and more.
The IT department of CoTDP is looking for talented developers. Candidates must prove their ability to program in accordance with Triskaidekaphobic dogma. Can you get this prestigious job?
Your Mission
Write a program that prints all prime numbers below 1000, excluding the unlucky one. the program must obey the CoTDP programming rules.
Rules
- Numbers whose absolute value is greater than 12 and smaller than 14 are considered unlucky and must be avoided.
- Unlucky numbers must not be used in the program.:
- Must not appear in the program, in any representation/base.
- Must not be the value of an expression or calculation (e.g.
5 + 8
). - Must not be an intermediate value in an expression (e.g.
5 + 8 + 3
,35 % 22 == 0
). - Must not be stored in a variable, register, memory etc (e.g.
for i in xrange(20):
). - Must not be passed to a function or returned from one.
- The above applies to any complex type which contains an unlucky number (e.g.
range(20)
in Python 2). - The above applies to all expressions, not just constant expressions (e.g.
x+1
is invalid ifx
happens to be 12).
- No calculation, or intermediate value of a calculation, may yield an unlucky number. For example,
(35 % 22) == 0
,5 + 8 + 12
and andfor i in xrange(20):
are forbidden. - Output lines bust be separated by line-feed only (no carriage return).
- You must find primes using basic mathematical operations. If your language provides tools to find primes or test primality, you must not use them.
- Standard Loopholes apply.
Scoring
This is code-golf, the shortest solution (in bytes) wins.
Questions for Meta
- Do the limitations make sense for all sorts of languages? I think they cover languages such as C/Python/Java that use expressions, and also languages such as BrainFuck that manipulate memory (I think it's obvious that you must not write 13 in a memory cell).
- Is there a trivial solution that makes it uninteresting?
- Would it be better as a popularity contest?
- Or maybe, accept the shortest, but give a bounty for the most interesting/creative answer?
- Can the expression "Church of Triskaidekaphobia" be considered offensive to followers of some churches?