# Prime sign not correctly displayed on uppercase letters

I have this definition in which I want to use uppercase letters with prime symbols attached, but the prime sign does not seem to display correctly. Is this a feature of the language, or is it a culprit of my macros, settings and templates? Please do not go into too much detail if possible, I am a beginner in LaTeX. Thank you in advance.

Here is what I use at the moment and how it displays:

$$G\prime = (V\prime, E\prime)$$


• the syntax is G' not G\prime – David Carlisle May 7 '18 at 16:35
• Use ' not \prime, it is the same as ^{\prime}  – daleif May 7 '18 at 16:36
• It sounds, from the answer and comments, that the same would occur with lowercase. If so, worth amending the question? – owjburnham May 7 '18 at 17:54

$$G^{\prime} = (V^{\prime}, E^{\prime})$$

$$G'=(V',E')$$