Your challenge is to write a program (full program, not a function), that will take an integer and output all prime numbers up to (including) the given integer. Output is any readable list containing all integer primes (array, string, 1 prime per line, whatever you want) and must run to stdout or equivalent.
Simple? Here's the twist:
You may not use literals in your program. These include:
- Literal numbers (0 through 9)
- Literal strings (in quotes)
You may not use built in prime checks
EDIT: A prime check is a built in function that
- Returns if a number is a prime number
- Returns a prime number
- Returns a list of prime numbers
You may code your own functions that do the above
Prime factorisation functions are allowed
As this is code-golf, shortest answer in bytes wins