Ahoj,
mělo to být asi takhle, stačilo fakt málo :)
def prvocisla(n):
pocet = 1
c = 2
while pocet != n:
for i in range(2, c):
if c % i == 0:
break
else:
print(c)
pocet += 1
c += 1
prvocisla(10)
Ten for c in range(2,c+1) tam byl nějaký navíc.
A taky nemusíš printit výsledek funkce prvocisla, protože ten výsledek je None (voláš snad někde return?), a None asi printit nechceš.
Petr