Submission
Id | When | Author | Problem | Language | CPU | Memory | Verdict |
---|---|---|---|---|---|---|---|
17886 | 2024-04-24 03:37:42 | ewu_intra24_mock_u_84 | Binary Prime | C | 0 ms | 1532 kb | Wrong Answer - 1 |
Test Cases
CPU | Memory | Verdict | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
1 | 0 ms | 1532 kb | Wrong Answer | ||||||||
2 | - | - | Skipped | ||||||||
3 | - | - | Skipped | ||||||||
4 | - | - | Skipped | ||||||||
5 | - | - | Skipped | ||||||||
6 | - | - | Skipped | ||||||||
7 | - | - | Skipped | ||||||||
8 | - | - | Skipped | ||||||||
9 | - | - | Skipped | ||||||||
10 | - | - | Skipped | ||||||||
11 | - | - | Skipped | ||||||||
Source Code
program.c
#include <stdio.h> int main() { int a[20], n, t, i, sum = 0, flag = 0; if(1<= t && t<=100){ if(1<= n && n<=1000000000000){ for(i = 0; i<t; i++){ a[i] = n%2; n = n/2; } for(i = i - 1; i>=0; i--){ sum += a[i]; } if(sum==0 || sum==1){ flag = 1; } for(int j = 2;j<sum/2;j++){ if(sum%j==0){ flag = 1; break; } } } } return 0; }