What part of the brain is stimulated in transcranial magnetic stimulation?

Primary motor cortex

Prefrontal cortex

Primary somatosensory cortex

Posterior parietal cortex