what do you call a name that has only 2 factors?

I assume you really mean

What do you call a number that has only 2 factors?

Any number having only 2 factors is called a prime number. The 2 factors are 1 and the number itself.