Beispiel #1
0
 public void Test_1()
 {
     Assert.Equal(new int[0], PrimeFactors.For(1));
 }
Beispiel #2
0
 public void Test_901255()
 {
     Assert.Equal(new[] { 5, 17, 23, 461 }, PrimeFactors.For(901255));
 }
Beispiel #3
0
 public void Test_93819012551()
 {
     Assert.Equal(new[] { 11, 9539, 894119 }, PrimeFactors.For(93819012551));
 }
Beispiel #4
0
 public void Test_27()
 {
     Assert.Equal(new[] { 3, 3, 3 }, PrimeFactors.For(27));
 }
Beispiel #5
0
 public void Test_625()
 {
     Assert.Equal(new[] { 5, 5, 5, 5 }, PrimeFactors.For(625));
 }
Beispiel #6
0
 public void Test_9()
 {
     Assert.Equal(new[] { 3, 3 }, PrimeFactors.For(9));
 }
Beispiel #7
0
 public void Test_8()
 {
     Assert.Equal(new[] { 2, 2, 2 }, PrimeFactors.For(8));
 }
Beispiel #8
0
 public void Test_6()
 {
     Assert.Equal(new[] { 2, 3 }, PrimeFactors.For(6));
 }
Beispiel #9
0
 public void Test_3()
 {
     Assert.Equal(new[] { 3 }, PrimeFactors.For(3));
 }
Beispiel #10
0
 public void Test_2()
 {
     Assert.Equal(new[] { 2 }, PrimeFactors.For(2));
 }