21 lines
426 B
Nim
21 lines
426 B
Nim
import strutils
|
|
import sequtils
|
|
import bigints # type: BigInt
|
|
|
|
# let x = initBigInt("810896098877923596128062174904361421866219158")
|
|
|
|
let file_path = "./data/stripped"
|
|
|
|
let f = open(file_path)
|
|
var line : string
|
|
var i = 0
|
|
while f.read_line(line):
|
|
if i > 3:
|
|
let arr = split(line, ",")
|
|
let l = arr.len
|
|
let nums = arr[1..(l-2)] # .map(proc (x: string): BigInt = initBigInt(x))
|
|
# echo nums
|
|
i = i + 1
|
|
|
|
f.close()
|