Why wont this python program print work?

1 answer

Answer

1206478

2026-04-17 20:50

+ Follow

This is the program that I couldn't fit in the question: Sorry for the underscores but it wouldn't let me indent

# !/usr/bin/python

# Filename: prime5.py

#<---program is supposed to print prime number chosen--->

y = int(input('How many prime numbers do you want to see?'))

x = 6

w = 0

primes = [2,3,5]

z = len(primes)

j = 0

while w != 1:

____if y*0!=0:

________y = input('Please pick another NUMBER: ')

____elif y*0==0:

________w = w + 1

while z <= y:

____if x % primes[j] (j+1) and x % primes[j] != 0:

________primes.append(x)

________x = x + 1

________j = 0

____elif x % primes[j] != 0:

________j = j + 1

print ('These are the numbers you wanted to know', primes)

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.