I know
There is an infinite number of prime numbers
is correct. But is
There are infinite prime numbers
correct as well?
I know
There is an infinite number of prime numbers
is correct. But is
There are infinite prime numbers
correct as well?
Your first sentence is correct, but has the stylistic disadvantage of repeating the word "number". Your second sentence is wrong; "infinite" is usually only applied as an adjective to uncountable nouns (e.g., "infinite space"). The standard way to rephrase the first sentence without repeating the word "number" is
There are infinitely many prime numbers.
I think people are split on whether you should say, "There is an infinite number of ..." or "There are an infinite number of ..."
I think this problem generally exists when using "number" and similar words to express a quantity. Here's the Google Ngram on "is a large number" versus "are a large number"; note "are" has about twice as many.
Similarly, in this Ngram "are an infinite number of" beats "is an infinite number of".
As others note, you can't say "There are infinite prime numbers" in the sense you mean. that statement as worded would mean that there exist prime numbers that are infinite, which doesn't really make sense. There is no single word that I know of that can be fit into that sentence in place of "infinite" to express the idea that you want. Dictionary definitions might lead you to write, "There are infinity prime numbers", but no one actually says that.
If you dislike repeating the word "number", you could always say, "There are an infinite number of primes." Of course that solution relies on the fact that "prime" can be used as a noun synonymous with "prime number", a fact that wouldn't work in other cases. Like, "There are an infinite number of perfect numbers". You can't say, "There are an infinite number of perfects", that's just not an accepted term.
First, there is only a countably infinite number of prime numbers.
There are infinitely more real numbers, for instance, than there are prime numbers, because the real numbers are not countably infinite. So, saying an infinite number is ambiguous. Though that probably only matters to mathematicians; countably infinite is still infinite.
Second, infinity is not the name of a number; it's the name of a mathematical concept. And infinite isn't the name of a number either; it's an adjective meaning 'without end' and has special descriptive uses in set theory, and in any branch of mathematics derived from set theory (which means pretty much everything).
Consequently neither word can be used as a quantifier, the way a number name can, so
Third, infinite, as you point out, can modify number, and takes an article (usually indefinite) when it does so:
"We've all heard that an infinite number of monkeys at an infinite number of keyboards will eventually produce the complete works of Shakespeare; now, thanks to the Internet, we know that this is not true."
-- Robert Wilensky
The 2nd sentence is a bit ambiguous in that it can be interpreted to mean there are prime numbers that are infinite. Now, logically that may not make any sense, but the 1st sentence clearly states that the number of prime numbers are infinite.
As pointed out in other answers, "There are infinite prime numbers" doesn't work because it reads as both "infinite" and "prime" modifying "numbers". "There are prime infinite numbers" is equivalent (but the adjective order is fishy).
In the phrase "There are an infinite number of prime numbers", "infinite" is modifying "number", and the phrase "an infinite number" expresses a non-specific quantity, much like saying "There are lots of prime numbers." I can't recall any single word that would work here.
The previously suggested phrase "There are infinitely many prime numbers" is similar, and if your motivation is avoiding the repetition of "number" is probably the best choice.
However, the structure of the phrase "There are infinite prime numbers" would work if "infinite" were replaced by an explicit quantity, such as "eleven". The word "infinity" is plausible in this case, but is idiomatically dubious. Generally, "infinity" in this sense is used only as an overall category ("some infinities are larger than others") or when speaking of limits ("as X goes to infinity"). As such, the phrasing "There are infinity prime numbers" is, while clear and comprehensible, technically wrong and is likely to irritate anyone who knows that.
If your motivation is a word that represents an infinite quantity the same way "eleven" represents a quantity, the term for that is a cardinal number. There are a variety of cardinal numbers representing infinite quantities, but the cardinality of the prime numbers specifically is aleph-null, which is the "smallest infinity". It's not a particularly common use, but the phrase "There are aleph-null prime numbers" is grammatically and mathematically correct, if somewhat informal.
If your audience isn't likely to know what aleph-null means, you should probably stick with the "infinitely many" phrasing.
Yes, the first one is more specific. But I would say, "Prime numbers are infinite."