Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
primeno
//gcc 7.4.0 #include<stdio.h> void main(){ int arr[100],i,a,j,b; printf("Enter size of an array:\n"); scanf("%d",&a); printf("Enter array elements:\n"); for (i=0;i<a;i++){ scanf("%d",&arr[i]); } printf("All prime list is:"); for(i=0;i<a;i++){ j=2; b=1; while(j<arr[i]){ if(arr[i]%j==0){ b=0; break; } j++; } if(b==1){ printf("%d ",arr[i]); } } }
run
|
edit
|
history
|
help
0
Simple interest
swap_talent.c
bitwise operations
bitmask
Greeting
B_141128_MatrizProducto
co_assign1_ques_4
18BCE2182 ASSESS_2 Q4
HelloWorld
Official Hello world