A "set" is usually understood to be a collection of things that all share some common property, such as the set of all red fruits, the set of all animals that have kidneys, or the set of all numbers that are prime. A language is a set of strings, nothing more or less.
A number can be written as a numeral in any of several natural ways. For example, the number 135 might be written as 135, or in base 2 as 10000111, or in "unary" as 111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111.
Such a string can be written onto the input tape of a Turing machine, and then you can run the machine and see if the machine accepts the input.
You can then ask the question of whether a particular set of numbers is decidable by asking the analogous question about the language consisting of the strings that represent those numbers. For example, is there a Turing machine that accepts the strings 0, 2, 4, …, 1788, … and rejects the strings 1, 3, 5, …, 1789, …? Yes, there is, and so we say that the set of even numbers is decidable.
In questions of decidability it does not matter whether we represent numbers with base-10 numerals, or base-2 numerals, or "unary" numerals, since a Turing machine can easily convert between these representations. So we allow ourself to forget about the strings that represent the numbers, and just focus on the numbers themselves. The language consisting of strings that represent even numbers is decidable, for any reasonable way of representing numbers as strings, so we just say that the set of even numbers is decidable, or we say that the property of evenness is decidable.
Your question is asking about the set of prime numbers. Is there a Turing machine which will accept the strings 2, 3, 5, 7, 11, 13, …, 1013,… and reject the others?
19and the second does not, and the second one accepts the stringaaaaaaaaaaaaaaaaaaaand the first does not. – MJD Aug 13 '12 at 02:5119on the tape and say "yes" because it 19 prime, and look at an18on the tape and say "no" because 18 is not prime. You can also build a Turing machine which will look at anaaaaaaaaaaaaaaaaaaaon the tape and say "yes" because 19 is prime, and look at anaaaaaaaaaaaaaaaaaaon the tape and say "no" because 18 is not prime. Both can be done. It doesn't matter much which we do, so we tend to ignore the details of what is on the tape, and just ask if a TM can decide primality. – MJD Aug 13 '12 at 03:007. The number 7 can also be encoded in many other ways, such as+007.00, or1+(2×3), oraaaaaaa, depending on what is convenient. It is important in programming and CS to distinguish between a thing, such as the number 7, and its representation as a string, say as the string7. A Turing machine which recognizes primes encoded as base-10 numerals is not identical to one which recognizes the set of strings ${{\tt a}^p | p \mbox{ is prime} }$, but we can think of them as doing the same thing. – MJD Aug 13 '12 at 03:09