From Amazon chat:
"Me:ok. Also, Im thinking of buying it as a gift for someone else. Is it possible for me to keep the prime membership even though the phone is registered to someone else?
Amazon:Just a minute to investigate that for you.
Me:thanks
Amazon:Yes, that is possible. You just need to buy the phone and marked it as a gift and the prime will apply to the purchaser account.
"