Data update
This commit is contained in:
parent
0df55f9f24
commit
aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions
|
|
@ -1,6 +1,6 @@
|
|||
val .perfectsquare = f isInteger .n ^/ 2
|
||||
val .perfectsquare = fn(.n) (.n ^/ 2) div 1
|
||||
|
||||
val .israre = f(.n) {
|
||||
val .israre = fn(.n) {
|
||||
val .r = reverse(.n)
|
||||
if .n == .r: return false
|
||||
val .sum = .n + .r
|
||||
|
|
@ -8,7 +8,7 @@ val .israre = f(.n) {
|
|||
.diff > 0 and .perfectsquare(.sum) and .perfectsquare(.diff)
|
||||
}
|
||||
|
||||
val .findfirst = f(.max) {
|
||||
val .findfirst = fn(.max) {
|
||||
for[=[]] .i = 0; len(_for) < .max; .i += 1 {
|
||||
if .israre(.i) {
|
||||
_for ~= [.i]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue