Closed frithnanth closed 6 years ago
The flyer reads: Print 9999th prime number: (^∞).grep(*.is-prime)[10000].say but if @a[0] is the first element of an array then @a[n] is the (n+1)th, so the flyer should read "Print the 10001th prime number"
Print 9999th prime number:
(^∞).grep(*.is-prime)[10000].say
The flyer reads:
Print 9999th prime number:
(^∞).grep(*.is-prime)[10000].say
but if @a[0] is the first element of an array then @a[n] is the (n+1)th, so the flyer should read "Print the 10001th prime number"