0

Determine the Octet(/Duplet/18-electron) Rule
Tags: code-golfintegerchemistry
Given an atomic number in the inclusive range [1,118], write the shortest program/function that outputs one of {2,8,18} if the element with that atomic number follows the duplet, octet, or 18-electron rule, respectively...