primitive root calculator