I see. Thanks!
On Monday, 22 August 2016 18:28:15 UTC-5, Yichao Yu wrote:
>
>
>
> On Tue, Aug 23, 2016 at 4:58 AM, Achu >
> wrote:
>
>> I have a simple piece of code that finds me 10001 prime numbers.
>>
>> function a()
>> pl=[2]
>> n=3
>> ct=1
>> while(ct<10001)
>> isnprime=true
>> for
On Tue, Aug 23, 2016 at 4:58 AM, Achu wrote:
> I have a simple piece of code that finds me 10001 prime numbers.
>
> function a()
> pl=[2]
> n=3
> ct=1
> while(ct<10001)
> isnprime=true
> for a in pl
> if n%a==0
> isnprime=false
> break
> end
> e
I have a simple piece of code that finds me 10001 prime numbers.
function a()
pl=[2]
n=3
ct=1
while(ct<10001)
isnprime=true
for a in pl
if n%a==0
isnprime=false
break
end
end
if isnprime
push!(pl,n)
ct+=1
end
n+=2
e