残念ながら、raw_inputは必要な処理を実行していません。私がやろうとしているのは、プロンプトで入力したものをtotPrimes=にすることです。このスクリプトに置き換えるwhile count < totPrimes
と機能します。while count < 50
プロンプトに50と入力すると、このスクリプトは機能しません。raw_inputは、使用しようとしている関数ではないのではないかと思います。これが私のコードの抜粋です:
testNum = 3
div = 2
count = 1
totPrimes = raw_input("Please enter the primes: ")
while count < totPrimes :
while div <= testNum :