TITLE: When did the career of 1 as a prime number begin and when did it end?
QUESTION [19 upvotes]: The old Greek did not consider 1 a number, so it was not a prime. The theorem of unique prime factorization excludes 1 to be a prime number. But in between probably at Euler's and Goldbach's times? Who can determine most precisely (probably by original papers) when 1 first became a prime number and when 1 had been called a prime number for the last time?

REPLY [14 votes]: My naive understanding is like this:  most, but not all, of the ancient Greeks excluded one from the category of numbers ($\alpha\rho\iota\theta\mu o\varsigma$), hence from the primes (others excluded two as well).  Speussippus (c.350BC) is a rare exception:

Speussippus, then, is exceptional among pre-Hellenistic thinkers in that he considers
  one to be the first prime number.  [L. Taran, Speusippus of Athens: a critical study with a collection of the related texts and commentary, Philosophia antiqua, vol. 39-40, E.J. Brill, 1981] 

This view held (mostly) until Stevin's argument that one was a number and his development of the reals (late 16th century)

In general, mathematics before Stevin is of one character and, after him, it
  is of another re
  ecting his contributions. In this regard, he is like Euclid: he
  stood at a watershed in the history of mathematics. And as with Euclid, he
  was so successful that, from our present day vantage point, it is hard to see
  the other side of that watershed. Over there, one was not a number; here and
  now, it is; even  is a number, and i, and aleph nul. [C. J. Jones, The concept of one as a number, Ph.D. thesis, University of Toronto, 1978.]

Now we enter a period of confusion.  The view of one as a non-number slowly begins to die out, and some (e.g., Brancker + Pell's table 1688) begin to list one as a prime.
Not a prime for Schooten 1657, Clerke 1682, Chales 1690, Ozanam 1691, Brunot 1723, Cortes 1724, Reyneau 1739, Euler 1770, Horsley 1772, ...  A prime for Wallis 1685, Goldbach 1742, Kruger 1746, Willich 1759, Lambert 1770, Felkel 1776, Warring 1782, ... (Not these folks may have used both views at times, as many of us alternate between ln and log for the natural log, depending on our audience)     
The beginning of the end comes with Gauss' Disquisitiones Arithmeticae as the Fundamental theorem of arithmetic, and especially the uniqueness of factorization, becomes central.  At about the same time number fields are introduced and the role of units becomes understood. I could give a long list (like the above) of yeses and nos in this period as well.  But the choice of excluding one from the primes gains superiority and is now essentially universal among mathematicians.
Was there a time one was almost universally considered a prime? Absolutely not.  Was there a time it was almost universally considered a non-prime: yes, much of history.    
Edited to add "last time" from comments: 
It might be that the last major mathematician "wrote" that one was a prime in print was G. H. Hardy, who lists one as a prime in his "A course of pure mathematics, "3rd ed., Cambridge University Press, 1921:

If there are only a finite number of primes let them be 1, 2, 3, 5, 7, 11, ... $N$.  [section 61, page 143-144]

He does is indirectly later in this text:

the decimal $.111\ 010\ 100\ 010\ 10\ldots$, in which the $n$th figure is $1$ if $n$ is prime, and zero otherwise, represents an irrational number [section 78, page 174]

By the 9th edition, 1944, Gerry Myerson notes the first reference to 1 as prime is removed (I'd bet it was changed by the 7th edition, 1938, and will try to check). The decimal (surely accidentally) was still present in the 10th edition that I checked.  
However, I am not convince Hardy personally thought (defined) that 1 was prime in 1921, I suspect he thought it was still not important enough to bother changing what he had written in the first edition, 1908.  His comments in the article "The Theory of Numbers"  in Science (New Series, Vol. 56, No. 1450, Oct. 13, 1922, pp. 401-405), appears to imply 1 is not prime.  E.g., he repeats that Mersenne listed $2^n-1$ was prime for 2, 3, ... without commenting about $1=2^1-1$ or altering Mersenne's statement to start at 1---which was commonly done.  (I admit this is this is weak evidence!)