How to write a Huge Prime in C Program ?
This is Huge Prime in C Program.
Solution:
- Huge prime(Huge n){
- Huge j;
- for (j=2;j<=n/2;j++)
- if((n%j)==0)
- return 0;
- return 1;
- }
- Huge last_prime(Huge p){
- Huge i,r;
- for (i=2;i<=p;i++){
- if(prime(i))
- r = i;
- }
- return r;
- }