Skip to main content
2 of 2
deleted 7 characters in body
flodel
  • 2.4k
  • 16
  • 16

R - 54

sum(nchar(gsub("[^o]","",english::english(1:scan()))))

I get 41 for n=101. I hope someone can confirm.

flodel
  • 2.4k
  • 16
  • 16