Skip to main content
Commonmark migration
Source Link

#Java, 407 398 351 308 bytes

Java, 407 398 351 308 bytes

Golfed it with help from @Geobits and @SamYonnou

Spread the word: Verbose == Java

import java.math.*;class A{public static void main(String[]w){BigInteger a=BigInteger.ZERO,b=a.flipBit(0),c,z=a,t=a.flipBit(1),h=t.flipBit(0),s=t.flipBit(2);for(int i=0;i<100;i++){System.out.println(b.mod(s).equals(z)?"FiboNacci":b.mod(t).equals(z)?"Fibo":b.mod(h).equals(z)?"Nacci":b);c=a;a=b;b=c.add(b);}}}

Ungolfed version:

import java.math.*;

class A
{
  public static void main(String[]w)
  {
    BigInteger a=BigInteger.ZERO,b=a.flipBit(0),c,z=a,t=a.flipBit(1),h=t.flipBit(0),s=t.flipBit‌​(2);
    for(int i=1;i<=100;i++) {
      System.out.println(b.mod(s).equals(z)?"FiboNacci":b.mod(t).equals‌​(z)?"Fibo":b.mod(h).equals(z)?"Nacci":b);                
      c=a;a=b;b=c.add(b);
    }
  }
}

#Java, 407 398 351 308 bytes

Golfed it with help from @Geobits and @SamYonnou

Spread the word: Verbose == Java

import java.math.*;class A{public static void main(String[]w){BigInteger a=BigInteger.ZERO,b=a.flipBit(0),c,z=a,t=a.flipBit(1),h=t.flipBit(0),s=t.flipBit(2);for(int i=0;i<100;i++){System.out.println(b.mod(s).equals(z)?"FiboNacci":b.mod(t).equals(z)?"Fibo":b.mod(h).equals(z)?"Nacci":b);c=a;a=b;b=c.add(b);}}}

Ungolfed version:

import java.math.*;

class A
{
  public static void main(String[]w)
  {
    BigInteger a=BigInteger.ZERO,b=a.flipBit(0),c,z=a,t=a.flipBit(1),h=t.flipBit(0),s=t.flipBit‌​(2);
    for(int i=1;i<=100;i++) {
      System.out.println(b.mod(s).equals(z)?"FiboNacci":b.mod(t).equals‌​(z)?"Fibo":b.mod(h).equals(z)?"Nacci":b);                
      c=a;a=b;b=c.add(b);
    }
  }
}

Java, 407 398 351 308 bytes

Golfed it with help from @Geobits and @SamYonnou

Spread the word: Verbose == Java

import java.math.*;class A{public static void main(String[]w){BigInteger a=BigInteger.ZERO,b=a.flipBit(0),c,z=a,t=a.flipBit(1),h=t.flipBit(0),s=t.flipBit(2);for(int i=0;i<100;i++){System.out.println(b.mod(s).equals(z)?"FiboNacci":b.mod(t).equals(z)?"Fibo":b.mod(h).equals(z)?"Nacci":b);c=a;a=b;b=c.add(b);}}}

Ungolfed version:

import java.math.*;

class A
{
  public static void main(String[]w)
  {
    BigInteger a=BigInteger.ZERO,b=a.flipBit(0),c,z=a,t=a.flipBit(1),h=t.flipBit(0),s=t.flipBit‌​(2);
    for(int i=1;i<=100;i++) {
      System.out.println(b.mod(s).equals(z)?"FiboNacci":b.mod(t).equals‌​(z)?"Fibo":b.mod(h).equals(z)?"Nacci":b);                
      c=a;a=b;b=c.add(b);
    }
  }
}
golfed it
Source Link
Sock
  • 81
  • 1
  • 6

#Java, 407 398 351351 308 bytes

Golfed it with help from @Geobits and @SamYonnou

Spread the word: Verbose == Java

import java.math.*;class A{public static void main(String[]zString[]w){BigInteger a=BigInteger.ZERO,b=BigIntegerb=a.ONEflipBit(0),c;forc,z=a,t=a.flipBit(1),h=t.flipBit(0),s=t.flipBit(2);for(int i=1;i++<=100;i=0;i<100;i++){System.out.println((b.mod(new BigInteger("6")s).equals(BigInteger.ZEROz)?"FiboNacci":b.mod(new BigInteger("2")t).equals(BigInteger.ZEROz)?"Fibo":b.mod(new BigInteger("3")h).equals(BigInteger.ZEROz)?"Nacci":b));c=a;a=b;b=c.add(b);}}}

Ungolfed version:

import java.math.*;

class A
{
  public static void main(String[]aString[]w)
  {
    BigInteger a=BigInteger.ZERO,b=BigIntegerb=a.ONEflipBit(0),c;c,z=a,t=a.flipBit(1),h=t.flipBit(0),s=t.flipBit‌​(2);
    for(int i=1;i<=100;i++) {
      System.out.println((b.mod(new BigInteger("6")s).equals(BigInteger.ZEROz)?"FiboNacci":b.mod(BigInteger("2")t).equalsequals‌​(BigInteger.ZEROz)?"Fibo":b.mod(new BigInteger("3")h).equals(BigInteger.ZEROz)?"Nacci":b));                
      c=a;a=b;b=c.add(b);
    }
  }
}

#Java, 407 398 351 bytes

Golfed it with help from @Geobits

Spread the word: Verbose == Java

import java.math.*;class A{public static void main(String[]z){BigInteger a=BigInteger.ZERO,b=BigInteger.ONE,c;for(int i=1;i++<=100;){System.out.println((b.mod(new BigInteger("6")).equals(BigInteger.ZERO)?"FiboNacci":b.mod(new BigInteger("2")).equals(BigInteger.ZERO)?"Fibo":b.mod(new BigInteger("3")).equals(BigInteger.ZERO)?"Nacci":b));c=a;a=b;b=c.add(b);}}}

Ungolfed version:

import java.math.*;

class A
{
  public static void main(String[]a)
  {
    BigInteger a=BigInteger.ZERO,b=BigInteger.ONE,c;
    for(int i=1;i<=100;i++) {
      System.out.println((b.mod(new BigInteger("6")).equals(BigInteger.ZERO)?"FiboNacci":b.mod(BigInteger("2")).equals(BigInteger.ZERO)?"Fibo":b.mod(new BigInteger("3")).equals(BigInteger.ZERO)?"Nacci":b));                
      c=a;a=b;b=c.add(b);
    }
  }
}

#Java, 407 398 351 308 bytes

Golfed it with help from @Geobits and @SamYonnou

Spread the word: Verbose == Java

import java.math.*;class A{public static void main(String[]w){BigInteger a=BigInteger.ZERO,b=a.flipBit(0),c,z=a,t=a.flipBit(1),h=t.flipBit(0),s=t.flipBit(2);for(int i=0;i<100;i++){System.out.println(b.mod(s).equals(z)?"FiboNacci":b.mod(t).equals(z)?"Fibo":b.mod(h).equals(z)?"Nacci":b);c=a;a=b;b=c.add(b);}}}

Ungolfed version:

import java.math.*;

class A
{
  public static void main(String[]w)
  {
    BigInteger a=BigInteger.ZERO,b=a.flipBit(0),c,z=a,t=a.flipBit(1),h=t.flipBit(0),s=t.flipBit‌​(2);
    for(int i=1;i<=100;i++) {
      System.out.println(b.mod(s).equals(z)?"FiboNacci":b.mod(t).equals‌​(z)?"Fibo":b.mod(h).equals(z)?"Nacci":b);                
      c=a;a=b;b=c.add(b);
    }
  }
}
golfed it
Source Link
Sock
  • 81
  • 1
  • 6

#Java, 407 398398 351 bytes

Golfed it with help from @Geobits

Spread the word: Verbose == Java

import java.math.BigInteger;public class*;class A{public static void main(String[]z){BigInteger a=new BigInteger("0")a=BigInteger.ZERO,b=new BigInteger("1")b=BigInteger.ONE,c=a;forc;for(int i=1;i++<=100;){System.out.println((b.mod(new BigInteger("6")).equals(new BigInteger("0").ZERO)?"FiboNacci":b.mod(new BigInteger("2")).equals(new BigInteger("0").ZERO)?"Fibo":b.mod(new BigInteger("3")).equals(new BigInteger("0").ZERO)?"Nacci":b));c=a;a=b;b=c.add(b);}}}

Ungolfed version:

import java.math.BigInteger;*;

public class A
{
  public static void main(String[] argsString[]a)
  {
    BigInteger a=new BigInteger("0")a=BigInteger.ZERO,b=new BigInteger("1")b=BigInteger.ONE,c=a;c;
    for(int i=1;i<=100;i++) {
      System.out.println((b.mod(new BigInteger("6")).equals(new BigInteger("0").ZERO)?"FiboNacci":b.mod(new BigInteger("2")).equals(new BigInteger("0").ZERO)?"Fibo":b.mod(new BigInteger("3")).equals(new BigInteger("0").ZERO)?"Nacci":b));                
      c=a;a=b;b=c.add(b);
    }
  }
}

#Java, 407 398 bytes

Spread the word: Verbose == Java

import java.math.BigInteger;public class A{public static void main(String[]z){BigInteger a=new BigInteger("0"),b=new BigInteger("1"),c=a;for(int i=1;i++<=100;){System.out.println((b.mod(new BigInteger("6")).equals(new BigInteger("0"))?"FiboNacci":b.mod(new BigInteger("2")).equals(new BigInteger("0"))?"Fibo":b.mod(new BigInteger("3")).equals(new BigInteger("0"))?"Nacci":b));c=a;a=b;b=c.add(b);}}}

Ungolfed version:

import java.math.BigInteger;

public class A
{
  public static void main(String[] args)
  {
    BigInteger a=new BigInteger("0"),b=new BigInteger("1"),c=a;
    for(int i=1;i<=100;i++) {
      System.out.println((b.mod(new BigInteger("6")).equals(new BigInteger("0"))?"FiboNacci":b.mod(new BigInteger("2")).equals(new BigInteger("0"))?"Fibo":b.mod(new BigInteger("3")).equals(new BigInteger("0"))?"Nacci":b));                
      c=a;a=b;b=c.add(b);
    }
  }
}

#Java, 407 398 351 bytes

Golfed it with help from @Geobits

Spread the word: Verbose == Java

import java.math.*;class A{public static void main(String[]z){BigInteger a=BigInteger.ZERO,b=BigInteger.ONE,c;for(int i=1;i++<=100;){System.out.println((b.mod(new BigInteger("6")).equals(BigInteger.ZERO)?"FiboNacci":b.mod(new BigInteger("2")).equals(BigInteger.ZERO)?"Fibo":b.mod(new BigInteger("3")).equals(BigInteger.ZERO)?"Nacci":b));c=a;a=b;b=c.add(b);}}}

Ungolfed version:

import java.math.*;

class A
{
  public static void main(String[]a)
  {
    BigInteger a=BigInteger.ZERO,b=BigInteger.ONE,c;
    for(int i=1;i<=100;i++) {
      System.out.println((b.mod(new BigInteger("6")).equals(BigInteger.ZERO)?"FiboNacci":b.mod(BigInteger("2")).equals(BigInteger.ZERO)?"Fibo":b.mod(new BigInteger("3")).equals(BigInteger.ZERO)?"Nacci":b));                
      c=a;a=b;b=c.add(b);
    }
  }
}
deleted 9 characters in body
Source Link
Sock
  • 81
  • 1
  • 6
Loading
Source Link
Sock
  • 81
  • 1
  • 6
Loading