blogs.perl.org company blog

Infinite work is less work

The first task of last week's Weekly Challenge was to print the first ten strong and weak primes. A prime p n is "strong" if it's larger than the average of its two neighbouring primes ( i.e. p n > (p n-1 +p n+1 )/2 ). A prime is "weak" if it's smaller than the average of its two neighbours.
Points
161
HN comments
83
Submissions
1
Cited by
0 commenters

Software EngineeringLife, Learning & Writing2019

On Hacker News

SubmittedTitle on HNPointsComments
Jul 11, 2019Infinite work is less work by lizmat16183

More from blogs.perl.org

All 21 posts →

Related posts from the same era