Skip to main content
deleted 210 characters in body
Source Link

C#, 498 392392 320 bytes

I just really wanted to do this with linq, too bad I had to write my own sum function for BigInteger that really killed it :-(

using System;using System.Linq;using System.Numerics;using System.Collections.Generic;static class a{static void Main(){var f=new List<BigInteger>(){1,1};while(f.Count < 100Count<100)f.Add(f.Skip(f.Count-2).Take(2).Aggregate((a,b)=>b+a));f.ForEach(x=>{if(x%6==0)ConsoleSystem.Write("FiboNacci\n");else if(x%2==0)Console.Write("Fibo\n");else ifWriteLine(x%6==0?"FiboNacci":x%2==0?"Fibo":x%3==0)Console?"Nacci":x.WriteToString("Nacci\n");else Console.WriteLine(x);});}} 

Ungolfed:

using System; using System.Linq; using System.Numerics; using System.Collections.Generic; static class a { static void Main() { var f=new List<BigInteger>(){1,1}; while(f.Count < 100Count<100) f.Add(f.Skip(f.Count-2).Take(2).Aggregate((a,b)=>b+a)); f.ForEach(x=> {  if(x%6==0)  ConsoleSystem.Write("FiboNacci\n"); else if(x%2==0) Console.Write("Fibo\n"); else ifWriteLine(x%6==0?"FiboNacci":x%2==0?"Fibo":x%3==0) Console?"Nacci":x.WriteToString("Nacci\n"); else Console.WriteLine(x); }); } } 

Edit: Down to 392320 bytes thanks to LegionMammal978 for the aggregate suggestion and thanks to olegz's C# answer for the x%6 shorthand for X%2 && x%3 as well as the use of ternary operators in a single WriteLine statement.

C#, 498 392 bytes

I just really wanted to do this with linq, too bad I had to write my own sum function for BigInteger that really killed it :-(

using System;using System.Linq;using System.Numerics;using System.Collections.Generic;static class a{static void Main(){var f=new List<BigInteger>(){1,1};while(f.Count < 100)f.Add(f.Skip(f.Count-2).Take(2).Aggregate((a,b)=>b+a));f.ForEach(x=>{if(x%6==0)Console.Write("FiboNacci\n");else if(x%2==0)Console.Write("Fibo\n");else if(x%3==0)Console.Write("Nacci\n");else Console.WriteLine(x);});}} 

Ungolfed:

using System; using System.Linq; using System.Numerics; using System.Collections.Generic; static class a { static void Main() { var f=new List<BigInteger>(){1,1}; while(f.Count < 100) f.Add(f.Skip(f.Count-2).Take(2).Aggregate((a,b)=>b+a)); f.ForEach(x=> {  if(x%6==0)  Console.Write("FiboNacci\n"); else if(x%2==0) Console.Write("Fibo\n"); else if(x%3==0) Console.Write("Nacci\n"); else Console.WriteLine(x); }); } } 

Edit: Down to 392 bytes thanks to LegionMammal978 for the aggregate suggestion and thanks to olegz's C# answer for the x%6 shorthand for X%2 && x%3

C#, 498 392 320 bytes

I just really wanted to do this with linq, too bad I had to write my own sum function for BigInteger that really killed it :-(

using System.Linq;using System.Numerics;using System.Collections.Generic;static class a{static void Main(){var f=new List<BigInteger>(){1,1};while(f.Count<100)f.Add(f.Skip(f.Count-2).Take(2).Aggregate((a,b)=>b+a));f.ForEach(x=>{System.Console.WriteLine(x%6==0?"FiboNacci":x%2==0?"Fibo":x%3==0?"Nacci":x.ToString());});}} 

Ungolfed:

using System.Linq; using System.Numerics; using System.Collections.Generic; static class a { static void Main() { var f=new List<BigInteger>(){1,1}; while(f.Count<100) f.Add(f.Skip(f.Count-2).Take(2).Aggregate((a,b)=>b+a)); f.ForEach(x=> { System.Console.WriteLine(x%6==0?"FiboNacci":x%2==0?"Fibo":x%3==0?"Nacci":x.ToString()); }); } } 

Edit: Down to 320 bytes thanks to LegionMammal978 for the aggregate suggestion and thanks to olegz's C# answer for the x%6 shorthand for X%2 && x%3 as well as the use of ternary operators in a single WriteLine statement.

deleted 214 characters in body
Source Link

C#, 498498 392 bytes

I just really wanted to do this with linq, too bad I had to write my own sum function for BigInteger that really killed it :-(

using System;using System.Linq;using System.Numerics;using System.Collections.Generic;static class a{static void Main(){var f=new List<BigInteger>(){1,1};while(f.Count < 100)f.Add(f.Skip(f.Count-2).Take(2).sAggregate((a,b)=>b+a));f.ForEach(x=>{if(x%2==0&&x%3==0x%6==0)Console.Write("FiboNacci\n");else if(x%2==0)Console.Write("Fibo\n");else if(x%3==0)Console.Write("Nacci\n");else Console.WriteLine(x);});}public static BigInteger s(this IEnumerable<BigInteger> s){BigInteger sum=0;foreach(var x in s)sum += x;return sum;}} 

Ungolfed:

using System; using System.Linq; using System.Numerics; using System.Collections.Generic; static class a { static void Main() { var f = newf=new List<BigInteger>() { 1, 1 }; while(f.Count < 100) f.Add(f.Skip(f.Count-2).Take(2).sAggregate((a,b)=>b+a)); f.ForEach(x => x=> {  if (x % 2 == 0 && x % 3 == 0x%6==0) Console.Write("FiboNacci\n");  else if (x % 2 == 0x%2==0) Console.Write("Fibo\n");  else if (x % 3 == 0x%3==0) Console.Write("Nacci\n");  else Console.WriteLine(x);  });   Console.ReadLine(); } public static BigInteger s(this IEnumerable<BigInteger> s) { BigInteger sum = 0; foreach (var x in s)  sum += x; return sum; } } 

Edit: Down to 392 bytes thanks to LegionMammal978 for the aggregate suggestion and thanks to olegz's C# answer for the x%6 shorthand for X%2 && x%3

C#, 498 bytes

I just really wanted to do this with linq, too bad I had to write my own sum function for BigInteger that really killed it :-(

using System;using System.Linq;using System.Numerics;using System.Collections.Generic;static class a{static void Main(){var f=new List<BigInteger>(){1,1};while(f.Count < 100)f.Add(f.Skip(f.Count-2).Take(2).s());f.ForEach(x=>{if(x%2==0&&x%3==0)Console.Write("FiboNacci\n");else if(x%2==0)Console.Write("Fibo\n");else if(x%3==0)Console.Write("Nacci\n");else Console.WriteLine(x);});}public static BigInteger s(this IEnumerable<BigInteger> s){BigInteger sum=0;foreach(var x in s)sum += x;return sum;}} 

Ungolfed:

using System; using System.Linq; using System.Numerics; using System.Collections.Generic; static class a { static void Main() { var f = new List<BigInteger>() { 1, 1 }; while(f.Count < 100) f.Add(f.Skip(f.Count-2).Take(2).s()); f.ForEach(x =>  {  if (x % 2 == 0 && x % 3 == 0) Console.Write("FiboNacci\n");  else if (x % 2 == 0) Console.Write("Fibo\n");  else if (x % 3 == 0) Console.Write("Nacci\n");  else Console.WriteLine(x);  });   Console.ReadLine(); } public static BigInteger s(this IEnumerable<BigInteger> s) { BigInteger sum = 0; foreach (var x in s)  sum += x; return sum; } } 

C#, 498 392 bytes

I just really wanted to do this with linq, too bad I had to write my own sum function for BigInteger that really killed it :-(

using System;using System.Linq;using System.Numerics;using System.Collections.Generic;static class a{static void Main(){var f=new List<BigInteger>(){1,1};while(f.Count < 100)f.Add(f.Skip(f.Count-2).Take(2).Aggregate((a,b)=>b+a));f.ForEach(x=>{if(x%6==0)Console.Write("FiboNacci\n");else if(x%2==0)Console.Write("Fibo\n");else if(x%3==0)Console.Write("Nacci\n");else Console.WriteLine(x);});}} 

Ungolfed:

using System; using System.Linq; using System.Numerics; using System.Collections.Generic; static class a { static void Main() { var f=new List<BigInteger>(){1,1}; while(f.Count < 100) f.Add(f.Skip(f.Count-2).Take(2).Aggregate((a,b)=>b+a)); f.ForEach(x=> { if(x%6==0) Console.Write("FiboNacci\n"); else if(x%2==0) Console.Write("Fibo\n"); else if(x%3==0) Console.Write("Nacci\n"); else Console.WriteLine(x); }); } } 

Edit: Down to 392 bytes thanks to LegionMammal978 for the aggregate suggestion and thanks to olegz's C# answer for the x%6 shorthand for X%2 && x%3

added 188 characters in body
Source Link

C#, 498 bytes

I just really wanted to do this with linq, too bad I had to write my own sum function for BigInteger that really killed it :-(

using System;using System.Linq;using System.Numerics;using System.Collections.Generic;static class a{static void Main(){var f=new List<BigInteger>(){1,1};while(f.Count < 100)f.Add(f.Skip(f.Count-2).Take(2).s());f.ForEach(x=>{if(x%2==0&&x%3==0)Console.Write("FiboNacci\n");else if(x%2==0)Console.Write("Fibo\n");else if(x%3==0)Console.Write("Nacci\n");else Console.WriteLine(x);});}public static BigInteger s(this IEnumerable<BigInteger> s){BigInteger sum=0;foreach(var x in s)sum += x;return sum;}} 

Ungolfed:

using System; using System.Linq; using System.Numerics; using System.Collections.Generic; static class a { static void Main() { var f = new List<BigInteger>() { 1, 1 }; while(f.Count < 100) f.Add(f.Skip(f.Count-2).Take(2).s()); f.ForEach(x =>  {  if (x % 2 == 0 && x % 3 == 0) Console.Write("FiboNacci\n");  else if (x % 2 == 0) Console.Write("Fibo\n");  else if (x % 3 == 0) Console.Write("Nacci\n");  else  Console.WriteLine(x);  }); Console.ReadLine(); } public static BigInteger s(this IEnumerable<BigInteger> s) { BigInteger sum = 0; foreach (var x in s) sum += x; return sum; } } 

C#, 498 bytes

I just really wanted to do this with linq, too bad I had to write my own sum function for BigInteger that really killed it :-(

using System;using System.Linq;using System.Numerics;using System.Collections.Generic;static class a{static void Main(){var f=new List<BigInteger>(){1,1};while(f.Count < 100)f.Add(f.Skip(f.Count-2).Take(2).s());f.ForEach(x=>{if(x%2==0&&x%3==0)Console.Write("FiboNacci\n");else if(x%2==0)Console.Write("Fibo\n");else if(x%3==0)Console.Write("Nacci\n");else Console.WriteLine(x);});}public static BigInteger s(this IEnumerable<BigInteger> s){BigInteger sum=0;foreach(var x in s)sum += x;return sum;}} 

Ungolfed:

using System; using System.Linq; using System.Numerics; using System.Collections.Generic; static class a { static void Main() { var f = new List<BigInteger>() { 1, 1 }; while(f.Count < 100) f.Add(f.Skip(f.Count-2).Take(2).s()); f.ForEach(x => { if (x % 2 == 0 && x % 3 == 0)Console.Write("FiboNacci\n"); else if (x % 2 == 0)Console.Write("Fibo\n"); else if (x % 3 == 0)Console.Write("Nacci\n"); else Console.WriteLine(x); }); Console.ReadLine(); } public static BigInteger s(this IEnumerable<BigInteger> s) { BigInteger sum = 0; foreach (var x in s) sum += x; return sum; } } 

C#, 498 bytes

I just really wanted to do this with linq, too bad I had to write my own sum function for BigInteger that really killed it :-(

using System;using System.Linq;using System.Numerics;using System.Collections.Generic;static class a{static void Main(){var f=new List<BigInteger>(){1,1};while(f.Count < 100)f.Add(f.Skip(f.Count-2).Take(2).s());f.ForEach(x=>{if(x%2==0&&x%3==0)Console.Write("FiboNacci\n");else if(x%2==0)Console.Write("Fibo\n");else if(x%3==0)Console.Write("Nacci\n");else Console.WriteLine(x);});}public static BigInteger s(this IEnumerable<BigInteger> s){BigInteger sum=0;foreach(var x in s)sum += x;return sum;}} 

Ungolfed:

using System; using System.Linq; using System.Numerics; using System.Collections.Generic; static class a { static void Main() { var f = new List<BigInteger>() { 1, 1 }; while(f.Count < 100) f.Add(f.Skip(f.Count-2).Take(2).s()); f.ForEach(x =>  {  if (x % 2 == 0 && x % 3 == 0) Console.Write("FiboNacci\n");  else if (x % 2 == 0) Console.Write("Fibo\n");  else if (x % 3 == 0) Console.Write("Nacci\n");  else  Console.WriteLine(x);  }); Console.ReadLine(); } public static BigInteger s(this IEnumerable<BigInteger> s) { BigInteger sum = 0; foreach (var x in s) sum += x; return sum; } } 
Source Link
Loading