Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C_141113_VariosPerfectos
//Title of this code #include <stdio.h> int main(void) { long N; long d; long S; for(N = 6 ; N <= 500000 ; N+=10) { for(d = 1 , S = 0 ; d <= N / 2 ; d++) { if(N % d == 0) { S += d; } } if(S == N) { printf("%ld ", N); } for(d = 1 , S = 0 ; d <= (N + 2) / 2 ; d++) { if((N + 2) % d == 0) { S += d; } } if(S == (N + 2)) { printf("%ld ", (N + 2)); } } return 0; }
run
|
edit
|
history
|
help
0
Avance 2 de pregunta 5
Singly LinkedList.c
T3.C
Bitwise Operations
B_141118_Euclides
4 mejorado trabajo semanal 4
AVANCE DE PREGUNTA 5
day 3 integer manipulation
No Pyramid toggle
hippo he Rhoda shalbert now ring one white car bomb ching