Primes and prime ideals in short intervals