Instantly share code, notes, and snippets.

Embed
What would you like to do?
Embedly challenge (in Mathematica)
n = 1; While[Total[IntegerDigits[n!]] != 8001, n = n + 1]; n
article =
Cases[Import["http://apply.embed.ly/static/data/2.html", "XML"] /.
List -> Sequence, XMLElement["article", ___], Infinity];
N[StandardDeviation[
Length /@ Position[article, XMLElement["p", ___]]], 2]
totals = Rest[FoldList[Plus, 0, Table[900/i, {i, 1, 900}]]];
n = 1; While[totals[[n]] < totals[[-1]]/2, n = n + 1]; n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment