Unconfigured Ad Widget

Collapse

Anúncio

Collapse
No announcement yet.

Numeros Primos Padrão

Collapse
X
 
  • Filter
  • Tempo
  • Show
Clear All
new posts

  • Font Size
    #1

    Tutorial Numeros Primos Padrão

    c=1
    a=[]
    i=-1
    f=int (100000)
    j=2
    k=False
    l=2
    n=0
    for b in range (1,f):
    a.append(1)
    c=c+1
    f=f//2
    for m in range (1,20):
    for e in range (1,f//l):
    i = i + 1
    j=j+a[i]
    if j==l**2:
    k=True
    if j%l==0 and k==True:
    a[i]=a[i]+a[i+1]
    j=j+a[i+1]
    del a[i+1]
    l=l+a[n]
    n=n+1
    i=-1
    j=2
    k=False

    print(a)

  • Font Size
    #2
    Isso é perl?

    Engenharia Social - Web Design - Programmer
    __________________________________________________ __________

    sigpic

    Comment

    X
    Working...
    X