Add Type when creating list
This commit is contained in:
parent
da0f1ba9a6
commit
6c9c246f56
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user