On functions in p-adic BMO and the distribution of prime integers