ShareMyScreen/ProjectEuler/0013

From J Wiki
Jump to navigation Jump to search

Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.

NB. take the first 10 items
NB. │       convert to string
NB. │       │  extend precision
NB. │       │  │  sum
NB. │       │  │  │   create numbers from the items created by dividing the selected string from the website at every linefeed, ignoring partial cells
NB._│______ │_ │_ │_  │_________________________
   (i.10)&{ ": x: +/  ". ;._1 LF,shell'xclip -o'