• Aucun résultat trouvé

0 for y in range(2,n/2): for z in range(0,y): tab[x][y][z

N/A
N/A
Protected

Academic year: 2022

Partager "0 for y in range(2,n/2): for z in range(0,y): tab[x][y][z"

Copied!
1
0
0

Texte intégral

(1)

import numpy as np import math

from math import sqrt

pasdg = np.zeros((102), dtype='i') tab=np.zeros((102,102,102),dtype='i') for n in range(6,102,2):

print('val de reference : '+str(n)) for y in range(2,n/2+1):

for z in range(0,y):

if ((n % y) == z):

tab[n][y][z] = 1

print(str(tab[n][y][z])), print('')

print('bzzzz')

for x in range(3,n/2+1):

pasdg[x] = 0

for y in range(2,n/2):

for z in range(0,y):

tab[x][y][z] = 0 if ((x % y) == z):

tab[x][y][z] = 1

if (tab[n][y][z] == 1):

pasdg[x] = 1 ;

if (tab[x][y][0] == 1) and (x != y):

pasdg[x] = 1 for x in range(3,n/2+1):

print(str(x))

for y in range(2,n/2+1):

for z in range(0,y):

print(str(tab[x][y][z])), print('')

print('')

for x in range(3,n/2+1,2):

if (pasdg[x] == 0):

print(str(x)+" dg de "+str(n)) print('')

Références

Documents relatifs

C’est obtenu par la superposition d’une source placée au (-a,0) et d’un puits avec la même intensité au (+a,0), et puis en prenant la limite de fonction de courant pour a

Montre que si on choisit 4 comme nombre de départ, on obtient

C’est ce qu’on appelle parfois la limite de ”viscosit´ e ´ evanescente” qui nous permet de r´ esoudre une ´ equation ”du premier ordre” comme limite d’une ´

Déterminer le centre et le rayon de la sphère circonscrite au tétraèdre (ABCD), ainsi qu’une équation cartésienne du plan (ABC).. Formule du double

Cours de Frédéric Mandon sous licence Creative Commons BY NC SA, http://creativecommons.org/licenses/by-nc-sa/3.0/fr/1. • La symétrie par rapport à la première bissectrice

[r]

Déterminer les lieux de ces 3 points quand les droites Δ 1 /Δ 2 pivotent au tour du point O.Ces lieux ont 4 points remarquables en commun qu'on précisera.

[r]