Here is what I have so far. I need to specifically add a loop and a counter for the program to print out the first 50 prime numbers. I know I need to get rid of the initial input but I am confused on how to add in the loop and a counter to check and see how many primes I have. Any info would help greatly, I am totally new to programming.
num = int(input("enter a number: "))
primeFlag = True
n = 2
for n in range(2,num):
if (num % n == 0):
primeFlag = False
if primeFlag:
print(" %d is prime" % num)