Add Type when creating list
This commit is contained in:
@@ -18,7 +18,7 @@ function Problem7()
|
||||
What is the 10_001st prime number
|
||||
=#
|
||||
number = 2
|
||||
primeList = []
|
||||
primeList = Int[]
|
||||
while length(primeList) < 10_001
|
||||
if isprime(number)
|
||||
append!(primeList,number)
|
||||
|
||||
Reference in New Issue
Block a user