num.json

2.0 kB · json · 147 lines

1[2  {3    "fn": "num::factor::factorial",4    "in": {5      "number": 256    },7    "out": "15511210043330985984000000",8    "note": "the u128 crossing: 25! as a decimal string"9  },10  {11    "fn": "num::factor::gcd",12    "in": {13      "pairs": [14        [15          "1071",16          "462"17        ],18        [19          "1267650600228229401496703205376",20          "1152921504606846976"21        ]22      ]23    },24    "out": [25      "21",26      "1152921504606846976"27    ],28    "note": "two calls, (1071, 462) and (2^100, 2^60), u128 in and out as decimal strings"29  },30  {31    "fn": "num::factor::divisors",32    "in": {33      "number": 36034    },35    "out": [36      1,37      2,38      3,39      4,40      5,41      6,42      8,43      9,44      10,45      12,46      15,47      18,48      20,49      24,50      30,51      36,52      40,53      45,54      60,55      72,56      90,57      120,58      180,59      36060    ],61    "note": "the 24 divisors of 360 in ascending order"62  },63  {64    "fn": "num::factor::mobius_sieve",65    "in": {66      "limit": 3067    },68    "out": [69      0,70      1,71      -1,72      -1,73      0,74      -1,75      1,76      -1,77      0,78      0,79      1,80      -1,81      0,82      -1,83      1,84      1,85      0,86      -1,87      0,88      -1,89      0,90      1,91      1,92      -1,93      0,94      0,95      1,96      0,97      0,98      -1,99      -1100    ],101    "note": "OEIS A008683 with a leading pad: 31 entries, mu(n) at index n"102  },103  {104    "fn": "num::prime::is_prime",105    "in": {106      "from": 1,107      "to": 100108    },109    "out": [110      2,111      3,112      5,113      7,114      11,115      13,116      17,117      19,118      23,119      29,120      31,121      37,122      41,123      43,124      47,125      53,126      59,127      61,128      67,129      71,130      73,131      79,132      83,133      89,134      97135    ],136    "note": "the 25 numbers in 1..=100 the test keeps"137  },138  {139    "fn": "num::series::zeta",140    "in": {141      "s": 2.0,142      "terms": 1000143    },144    "out": 1.644934066848,145    "note": "the f64 crossing: pi squared over six, rounded to 12 decimals"146  }147]