Allegedly it's been undergoing test flights for 5 years, back when Trump was the 45th president. I think we can dispense with the notion that the number refers to Trump.
USAF plane naming is... odd. F-35, F-117, B-1/B-2/B-21. Not much rhyme or reason. It's very possible 47 was picked for Trump's benefit. Silly, but possible.