Are you doing hypothesis testing ? Are you familiar with the binomial distribution ?

some pointers.

Let be the variable that represents the number of heads. We have

Because you're using a large amount of trails you can use the Normal approximation

Bobak