[Chapel Merge] Add Sieve of Eratosthenes test example

Branch: refs/heads/main
Revision: e38fcf3
Author: riftEmber
Link: Add Sieve of Eratosthenes test example by riftEmber · Pull Request #20620 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20620 from riftEmber/sieve-example

Add Sieve of Eratosthenes test example

Adds an example program to test/studies which uses the Sieve of Eratosthenes to find primes under 1000.

This is the "Chapeltastic" version of the algorithm requested by #17081 and Cray/chapel-private#3751, written with concern for simplicity and readability over performance.

[reviewed by @mppf]

Modified Files:
A test/studies/sieve/sieve.chpl

A test/studies/sieve/sieve.good

Compare: https://github.com/chapel-lang/chapel/compare/47a0d78be31d...e38fcf300dce