how to make superprime coding?

i have assignment and i really dont know how to make it.
this is about superprime numbers, we will input 5digits number from 10000 until 99999. and then the program need to tell the user whether the number input is superprime or not. can you help me with this? thank you
Well, what do you have so far and what is the problem?
i really don't know how to make it, what is superprime? i found this :
#include<stdio.h>
#include<conio.h>

void superprime();

int main()
{
int num;
printf("\nEnter an integer number: ");
scanf("%d", &num);
superprime(&num);
getch();
}
void superprime(int *p)
{
int a, digit, d=2, flag=1, f=1, t;
t=*p;

while(d<*p)
{
if((*p%d)==0)
{
flag=0;
break;
}
d++;
}
if(flag==1)
{
f=1;
while(t>0)
{
a=2;

digit=t%10;
while(a<digit)
{
if((digit%a)==0)
{
f=0;
break;
}
a++;
}
t=t/10;
}
}

if(f==1&&flag==1)
printf("\nGiven number is superprime\n");
else if(flag==0)
printf("\nGiven number is not prime\n");
else if(f==0&&flag==1)
printf("\nGiven number is prime but not superprime");
else
printf("\nGiven number is not prime\n");
return;
}

but when i run it, it's wrong.
is that superprime? hwo to make logarithm in c++? i found here to complicated
What? You don't need any logarithms, just scroll down to Example and do that.
Once you have your prime numbers, select those that are superprimes.
Topic archived. No new replies allowed.