Cununcus
Cununcus is a genus of moths belonging to the family Tortricidae.[1]
Cununcus | |
---|---|
Scientific classification | |
Kingdom: | |
Phylum: | |
Class: | |
Order: | |
Family: | |
Subfamily: | |
Genus: | Cununcus Razowski & Becker, 2000 |
Species
- Cununcus phylarchus Razowski & Becker, 2000
gollark: The `ipairs` iterator gives us `key, value` for each item of the table (in order). The key is unnecessary here, so it's just bound to `_`, the convention I've seen a lot for variables you're discarding.
gollark: As you can see, you don't actually need to explicitly compute the length anywhere.
gollark: Here's how I would do it:```lualocal function divisible_by_any(n, factors) for _, factor in ipairs(factors) do if n % factor == 0 then return true end end return falseendlocal primes = { 2, 3 }for i = 2, 100 do if not divisible_by_any(i, primes) then table.insert(primes, i) endendfor _, prime in ipairs(primes) do print(prime) end```
gollark: I can't actually read that because ææææ my eyes but it looks like the same thing with less whitespace.
gollark: I mean, it *sort of* is, but instead of actually marking the things it just checks against each factor.
See also
References
- Baixeras, J.; Brown, J. W. & Gilligan, T. M. "Online World Catalogue of the Tortricidae". Tortricidae.com. Retrieved January 20, 2009.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.