Closed kotenok2000 closed 1 year ago
Can you show me the entire content of one of these files. Such as the file at this path: "C:/users/frolo/loda/programs/oeis\\015\\A015166.asm"
It's UnrecognizedParameterValue(17)
at a line number 17. I'm curious to see what instruction is on that line.
It is in the repository. https://github.com/loda-lang/loda-programs/blob/ed96aabf7b3da9f51252c910a3347a37f007dc6d/oeis/015/A015166.asm
; A015166: Inverse of 1157th cyclotomic polynomial.
; Submitted by Science United
; 1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
; Formula: a(n) = ((b(n)-4)/87302158405919092510875+1)%2, b(n) = d(n-1), b(2) = 2, b(1) = 2, b(0) = 0, c(n) = 2*c(n-1), c(2) = 4, c(1) = 2, c(0) = 1, d(n) = 2*d(n-1)*c(n-1)-d(n-1), d(2) = 6, d(1) = 2, d(0) = 2
mov $2,1
mov $3,2
lpb $0
sub $0,1
mov $1,$3
mul $2,2
mul $3,$2
sub $3,$1
lpe
mov $0,$1
sub $0,4
div $0,87302158405919092510875
add $0,1
mod $0,2
Oh, 87302158405919092510875
is bigger than what can be fitted into a 64 bits signed integer.
I like small numbers. Huge numbers I'm not sure what to think of them. Huge magic values is something I want to avoid. Rarely the huge number is of importance. IMHO Programs that contain so big numbers are bad examples, when constructing a new program. That these programs gets ignored, I think that is the best behavior.
What is your opinion?