Search found 18 matches

by tanmoy
Fri Jun 27, 2008 5:21 pm
Forum: Volume 114 (11400-11499)
Topic: 11408 - Count DePrimes
Replies: 12
Views: 5703

Re: 11408 - Count DePrimes

at last i make it and learn lots of thing :)
by tanmoy
Thu Jun 26, 2008 3:01 am
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 61402

10200 PRIME TIME

SOMEBODY PLEASE HELP ME :( IT IS WA :evil: WHY ? HERE IS MY CODE .IT PASSES ALL THE INPUT VALUES WHICH I CAN FIND. PLEASE HELP ME :cry: #include<stdio.h> #include<math.h> int store[10002+5]; int is_prime(int a) { int c; if (a==1) return 0; if (a==2) return 1; if (a%2==0)return 0; c= int(sqrt(a)); in...
by tanmoy
Wed Jun 25, 2008 2:37 pm
Forum: Volume 5 (500-599)
Topic: 516 - Prime Land
Replies: 23
Views: 6549

516

it is saying PE :( can any one please help me? here is my code ? #include<stdio.h> #include<stdlib.h> #include<string.h> #include<vector> #include<math.h> using namespace std; int num; vector<int>prime_factors(int a) { vector<int>pf; int g,i; while(((a%2)==0)) { a /=2; pf.push_back(2); } g=sqrt(a); ...

Go to advanced search