• Aucun résultat trouvé

2): return True if (atester

N/A
N/A
Protected

Academic year: 2022

Partager "2): return True if (atester"

Copied!
1
0
0

Texte intégral

(1)

from math import * def prime(atester):

pastrouve = True k = 2

if (atester == 1): return False if (atester == 2): return True if (atester == 3): return True if (atester == 5): return True if (atester == 7): return True while (pastrouve):

if ((k * k) > atester):

return True else:

if ((atester % k) == 0):

return False else: k=k+1 nmax=10002

dmax=8

for n in range(14,nmax,2):

pi2x = 0

for compteprem in range(2,n+1,1):

if (prime(compteprem)):

pi2x=pi2x+1 xa=0 ; xd=0

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

if (prime(x)):

if (prime(n-x)):

xa=xa+1 else:

if (not(prime(n-x))):

xd=xd+1 print('')

print('%6d : Xa %6d Xd %6d' % (n,xa,xd))

print(' : E(n/4) %6d pi(n) %6d E(n/4)-pi(n) %6d delta %6d' % (n//4,pi2x,n//4-pi2x,xd-xa-n//4+pi2x))

##############################################################################

# valeurs des variables

##############################################################################

#

# xa = #{p+q=n / p%2 = 1 et q%2 = 1 et 3 <= p <= n/2 et p et q premiers}

# xd = #{p+q=n / p%2 = 1 et q%2 = 1 et 3 <= p <= n/2 et p et q composes}

#

##############################################################################

# invariants

##############################################################################

#

# xd-xa=floor(n/4)-pi2x+delta

#

###########################################################################

Références

Documents relatifs

In the following, we shall obtain the sum of certain series and evaluate certain definite integrals by the help of the symbolic calculus of two

Directeur: Frédéric Lenne - Editeur délégué: Michaëlle Pesah - REDACTION - Rédacteur en chef: Patrick Cheruette, Rédactrice: Julie Nicolas, Ont collaboré à ce numéro:.

[r]

Reste à se rappeler que len(A) renvoie le nombre de lignes d’une matrice numpy, qui correspond donc à la taille de la matrice lorsqu’elle est carrée, et que A[:,j] permet

JorrrpN: On the use of Löwner's functions for finding inequalities for the first coefficient body of bounded univalent functions. - Reports of the Department of

For some time it has been known that the right direction to extend the geometric parts of the theory of analytic functions in the plane to real n-dimensional

In this section we give some elementary inequalities for affine maps in Ro and consider the approximation of QS maps by similarities.. We first introduce

The purpose of this paper is to study the linear local connectivity of sets in Euclidean n-space in relation to their boundaries, and to prove that linear