Primitive elements in a free group