Catalyzes the phosphorylation of thiamine to thiamine pyrophosphate. Functions cell non-autonomously. ATP + thiamine = AMP + H(+) + thiamine diphosphate Cofactor biosynthesis; thiamine diphosphate biosynthesis; thiamine diphosphate from thiamine: step 1/1. Belongs to the thiamine pyrophosphokinase family.