# How to code computation layer to accept a list of numbers

**URL:** <https://cl.desmos.com/t/how-to-code-computation-layer-to-accept-a-list-of-numbers/4056>\
**Category:** Questions\
**Tags:** dashboard\
**Created:** [February 11, 2022, 9:06pm UTC](https://cl.desmos.com/t/how-to-code-computation-layer-to-accept-a-list-of-numbers/4056 "2022-02-11T21:06:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kara\_Campbell](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/kara_campbell/32/3352_2.png) [@Kara\_Campbell](https://cl.desmos.com/u/Kara_Campbell)\
**Post date:** [February 11, 2022, 9:06pm UTC](https://cl.desmos.com/t/how-to-code-computation-layer-to-accept-a-list-of-numbers/4056/1 "2022-02-11T21:06:17Z")

</div>

Students will find the prime numbers between 1 and 100 using sieve of eratosthenes. I want them to enter the list of prime numbers they find, either separated by comma or space, and be able to see on the teacher dashboard if they got it right or not. Is there a way to do this? It appears the math input option only allows you to enter one correct answer.  
Thank you.

---

<div class="post-metadata">

**Author:** ![sergeballif](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/sergeballif/32/231_2.png) [@sergeballif](https://cl.desmos.com/u/sergeballif)\
**Post date:** [February 13, 2022, 8:03pm UTC](https://cl.desmos.com/t/how-to-code-computation-layer-to-accept-a-list-of-numbers/4056/2 "2022-02-13T20:03:27Z")

</div>

Hi @Kara_Campbell. My first thought was to make use of clickable points. [Sieve of Eratonsthenes • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/62093d243b1cc878deeead11) It’s not perfect, but it has a built-in check.

I also saw that someone else had built a sieve activity using tables for data entry, and I thought I should point it out. [Sieve of Eratosthenes • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/6054fab33b5cf63745557e3e)

---

<div class="post-metadata">

**Author:** ![Kara\_Campbell](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/kara_campbell/32/3352_2.png) [@Kara\_Campbell](https://cl.desmos.com/u/Kara_Campbell)\
**Post date:** [February 13, 2022, 9:02pm UTC](https://cl.desmos.com/t/how-to-code-computation-layer-to-accept-a-list-of-numbers/4056/3 "2022-02-13T21:02:51Z")

</div>

Thank you so much Serge, I don’t have much experience with desmos activities yet, I’ll check out the ones you found!
