for(long a=2;a<600851475143;a++){
vhd.Prime(a);
}
=================
what can i use for 600851475143 that can support it?
i got this error : The literal 600851475143 of type int is out of range
i used long but it say that error again!
Printable View
for(long a=2;a<600851475143;a++){
vhd.Prime(a);
}
=================
what can i use for 600851475143 that can support it?
i got this error : The literal 600851475143 of type int is out of range
i used long but it say that error again!
Try adding an L:
600851475143L;
to make it a long.
Thx...It Worked...
but why without L it didn't work?