---
# System prepended metadata

title: Untitled

---

* Build a list with all prime numbers from 1 to 100


```python3


def get_prime_until():
    result = []
    is_prime = {}
    
    #Initialization
    for i in range (2, 100):
        is_prime[i] = True
        
    #prime numbers computation
    for i in range(2, 100):
        if is_prime[i]:
            result.append(i)
            j = 2 * i
            while j <= 100:
                is_prime[j] = False
                j = j + i
                
    return result
```