Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C_141113_Primo01
//Title of this code #include <stdio.h> int main(void) { short N; short d; short c; printf("Valor de N ... "); scanf(" %hd", &N); for(c = 0 , d = 2 ; d <= N / 2 && c == 0 ; d++) { if(N % d == 0) {c++; } } if(c != 0) { printf("COMPUESTO\n\n"); } else { printf("PRIMO\n\n"); } return 0; }
run
|
edit
|
history
|
help
0
LinkedListTest
18BCE2182 ASSESS_1 Q1-1
bit wise operation
experimento con quicksort
bitwise operations
Hello world.c
Atomic Openmp
digitodentrodenumero
program1
first C code