We consider a numeration system in the ring of integers O K of a number field, which we assume to be principal. We prove that the property of being a prime in O K is decorrelated from two fundamental examples of automatic sequences relative to the chosen numeration system: the Thue-Morse and the Rudin-Shapiro sequences. This is an analogue, in O K , of results of Mauduit-Rivat which were concerned with the case K = Q.