Data update
This commit is contained in:
parent
0df55f9f24
commit
aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions
|
|
@ -6,4 +6,5 @@ for k = 1 to base * base - 1
|
|||
write k & " "
|
||||
.
|
||||
.
|
||||
print ""
|
||||
print "Trying " & c2 & " numbers instead of " & c1 & " numbers saves " & 100 - 100 * c2 / c1
|
||||
|
|
|
|||
5
Task/Casting-out-nines/R/casting-out-nines.r
Normal file
5
Task/Casting-out-nines/R/casting-out-nines.r
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
co9 <- function(base) {
|
||||
x <- 1:(base^2-1)
|
||||
x[(x %% (base-1)) == (x^2 %% (base-1))]
|
||||
}
|
||||
Map(co9,c(10,16,17))
|
||||
Loading…
Add table
Add a link
Reference in a new issue