Compounds having the formula (I) wherein R1, R2, R3a, R3b, R3c, R4, R5 and p are as defined herein are Hepatitis C virus NS5b polymerase inhibitors. Also disclosed are compositions and methods for treating an HCV infection and inhibiting HCV replication.