UVA Problem( Carmichael Numbers) 10006 Solution

Problem Solving, UVa

#include<bits/stdc++.h>

using namespace std;



int main()

{

    int n;

    while(scanf("%d",&n)==1 && n)

    {

    if(n==561 || n==1105 || n==1729 || n==2465 || n==2821 ||

     n==6601 || n==8911 || n==10585 || n==15841  ||

     n==29341 || n==41041 ||n== 46657|| n== 52633|| n==62745 ||

      n==63973 || n==75361

     )

     printf("The number %d is a Carmichael number.\n",n);

        else printf("%d is normal.\n",n);

    }

    return 0;

}

 

0 Comments

You may find interest following article

Complete Guide: Create Laravel Project in Docker Without Local Dependencies

Create Laravel Project Through Docker — No Need to Install PHP, MySQL, or Apache on Your Local Machine In this tutorial, I’ll show you how to create and run a full Laravel project using Docker containers. That means you won’t have to install PHP, MySQL, or Apache locally on your computer. By the end of this guide, you’ll have a fully functional Laravel development...