Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
Ranked #107.73K
~297 People Reached
Favorite Forums
Favorite Tags
c++ x 1

1 Posted Topic

Member Avatar for halleluijah

Shows the next prime palindromic number to the number you input. [CODE]#include<iostream.h> #include<conio.h> #include<process.h> void main() { clrscr(); unsigned long a,b[10],z=10; int i=0,j=0,k=0,m=0,c=1,g=2,f=6; cin>>a; if (a==1) { cout<<a; cout<<"\nnot prime"; getch(); exit(0); } b:while(k==0) { b[i]=((a+j)%z); if (b[i]==(a+j)) { if(c==2) { goto a; } c++; } b[i]=b[i]/(z/10); i++; z=z*10; } …

Member Avatar for pyromania
0
297

The End.