Friends I need help with this code where I can be wrong? always tells me that the older cousin is in positions 0:
'' 'Read 10 integers, store them in a list and determine in what positions of the list is the greatest number read first' ''
try:
lista=[]
lista2=[]
lista3=[]
aumento=0
for i in range(10):
numero=int(input("Digite un numero entero: "))
lista.append(numero)
for l in range(len(lista)):
primo=lista[l]
aumento=0
for k in range (1,primo+1):
if (primo%k)==0:
aumento+=1
if aumento==2:
lista2.append(primo)
print(lista2)
mayor=lista2[0]
for m in range(len(lista2)):
if lista2[m]>mayor:
mayor=lista2[m]
for s in range(len(lista2)):
if lista2[s]==mayor:
lista3.append(s)
print(lista3)
except ValueError:
print("El valor digitado debe ser numerico")