We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
please may i konow the reason why my code is passing only one test codition and remaing all condition are failling and when am giving the manual input am getting the expected output. i have attached my code
include
include
include
include
include
include
include
int main(){
int t;
scanf("%d",&t);
for(int a0 = 0; a0 < t; a0++){
long n,i,res,k=0;;
// int i,res,k=0;
scanf("%ld",&n);
for(i=2;i
Project Euler #3: Largest prime factor
You are viewing a single comment's thread. Return to all comments →
please may i konow the reason why my code is passing only one test codition and remaing all condition are failling and when am giving the manual input am getting the expected output. i have attached my code
include
include
include
include
include
include
include
int main(){ int t; scanf("%d",&t); for(int a0 = 0; a0 < t; a0++){ long n,i,res,k=0;; // int i,res,k=0; scanf("%ld",&n); for(i=2;i
}