Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Prime check
//gcc 5.4.0 #include <stdio.h> int main(void) { int n, count=0; printf("Enter a number n \n"); scanf("%d",&n); for(int i=1; i<=n; i++) { if(n%i==0) count++; } if(count==2) printf("The number %d is prime", n); else printf("The number %d is not prime", n); return 0; }
run
|
edit
|
history
|
help
0
ptr_tp_ptr
strend
est
A_141121_factorial02
bit shift and mask
sorted array
swap_talent.c
AVANCE DE PREGUNTA 5
B_141125_Burbuja
poist