Vinayak's Profile
Scholar
76
points

Questions
0

5

Vinayak loves solving puzzles at PuzzleFry.com. I am proud PuzzleFry member and like my time invested in solving brain teasers.
• Scholar Asked on 23rd November 2015 in

/*
Yep Thats Perfect!
Following is a java program to do the same thing.
*/
class k1{
public static int[] factorize (int a[], int p)
{
int count=0,no=p;
int b[]= new int[a.length];
b=a;
for(int i=2;i<=p;i++)
if(p%i==0){b[count++]=i;}
b[count++]=1;
return b;
}

public static int no_of_factors(int b[])
{
int counter=0;
for(int i=0;i<b.length-1;i++)
{
if(b[i+1]!=b[i]&&b[i]!=0) counter++;
}
return counter;
}

public static void main(String args[])
{
int on_count=0;
int a[]= new int;
for(int i=1;i<=1000;i++)
{
factorize(a,i);
int x = no_of_factors(a);
if(x%2!=0) on_count++;
for(int j=0;j<50;j++)a[j]=0;
}

System.out.print(on_count);

}// end of main
}// end of class

• 3221 views
• Scholar Asked on 21st November 2015 in

41%(2+6)=41%(4+6)=1
52%(3+7)=52%(6+4)=2

Hence the middle no should be such that it will give the same remainder when divided by 8 and 12 both.
Hence 75 is the answer as it is the only number which satisfies this criteria.

• 7400 views
• Scholar Asked on 19th November 2015 in

You don’t even need two ropes.
Just have one rope.
Fold it into half.
And Light it from both the ends simultaneously!
It will take fifteen minutes for the rope to burn.

• 5792 views
• Scholar Asked on 11th November 2015 in

30 = 11+9+3+1+3!

3!=3*2*1=6

• 9280 views
• Scholar Asked on 11th November 2015 in