Red de conocimiento informático - Problemas con los teléfonos móviles - Código fuente sqrt

Código fuente sqrt

El código fuente es el siguiente:

# include ltstdio.h gt

# include ltmath.h gt

int main()

{

int a, b, I, flag

Printf("Ingrese dos números enteros: ");

scanf("d d ", amp one, ampb) ;

Printf(el número primo entre "d" y d es ",a,b);

while(a lt;b)

{

bandera = 0;

for(I = 2; i lt= sqrt(a); i )

{

si (ai==0)

{

bandera = 1;

romper;

}

}

if (bandera==0)

printf("d ",a);?

a;

}?

Devuelve 0;

}

Datos extendidos

Los números pares siempre se pueden expresar como la suma de dos números primos. La fuente. El código es el siguiente:

#Contiene "stdio.h"

#Contiene "math.h"

main()

{

int a, b, c, d;

scanf("d", ampa);

for(b = 3; b lt= a /2; b = 2)

{

for(c = 2; c lt= sqrt(b); c )

if(b c = = 0)romper;

if(c gt; sqrt(b))

d = a-b;

Otro

Romper;

for(c = 2;c lt= sqrt(d);c )

if(dc==0)

romper;

if(c gt;sqrt(d))

printf("d=d d\n ",a,b,d);

}

}

for(int I = 5; i lt= sqrt(x); i =6)

if(xi==0||x(i 2)== 0)?

{

Printf("d no es un número primo", x

Devuelve 0;

Printf ("d es un número primo", x);

Devuelve 0;

}