Skip to main content

Check whether a given number is Fibonacci prime or not.

PROCEDURE:-
    1.input an integer n
    2. first check whether it is prime or not
    3. if it prime check whether it is in the Fibonacci series
    4.the above check can be made by generating series and comparing each number with n
    5.if n is found in the series then n is Fibonacci prime
    6.else it is not Fibonacci prime  
CODE:-
#include<stdio.h>
void main(){
int n,i=2,k=0,a,b,i,m;
printf(“enter the number”);
scanf(“%d”,&n);
while(i<=n/2)
{
if(n%i = = 0)
  {
    k=1; break;
  }
i++;
}
if(k!=1)
{
a=0; b=1; i=1; m=n;
while(i<=m)
{
  c=a+b;
   if(m= =c)
    {
     printf(“ %d is Fibonacci prime”,n);    break;
    }
a=b; b=c; i++;
}
if(m!=c)
printf(“%d  Not Fibonacci prime”,n);
}
else
printf(“not prime “);
}
Input:-enter the number  13
Output:- 13 is Fibonacci prime 

Comments

Popular posts from this blog

Hide your IP address with Proxy servers

The most common method to Hide your IP address is to use a PROXY server. Proxy server is a computer network service that provides an indirect connections between other computer networks. By using this proxy sites we can access any website with out revealing our IP address. This is the best method to keep your IP address secure. Here is the free proxy server website link.  http://www.freeproxyserver.ca/     We need to type the URL of such as (www.facebook.com) in the box given in the site, then we can browse it with out providing our IP address

Future Mouse-Evo Mouse

New evolution of the Mouse. In 1980's round ball mouses are invented, then technology introduced Optical mouses. Now upcoming Mouse is named as Evo mouse . No more movement of your hands on placing a physical mouse,   Your finger is the pointer . You can use this mouse on any Flat Surface and also it requires very little space. This mouse contains a Power button on the top, Mini USb port . It works with the help of bluetooth and input is taken by the sensor. View this Video to know the functionality of   EvoMouse

ALIENS RESEARCH CENTRE

Area 51 This is a never ending debate. Do aliens really exist? Does any one have proof that aliens exist? There has been now official confirmation from the Government and NASA that they have proof that aliens exist.  Biggest proof that aliens exist is the collection of alien pictures from NASA’s own system and also footages of sound and movement that have recorded such unusual happenings. How long can we now deny the truth of proof that aliens exist? A video that is a proof to prove the exitence of aliens.  Area 51  is a  military base , and a remote detachment of  Edwards Air Force Base . It is located in the southern portion of  Nevada  in the western  United States . It is the place were the research is going on the existence of aliens. A UFO(unidentified flying object) is crashed in Area 51 on july 1947.