let primes = [7, 11, 13, 17, 19, 23, 29, 31]
    
    #1
    if 7 in primes: echo("Found it!")
    
    #2
    echo primes.find(13)
    

I don't think count does what you think it does. According to [the 
docs](https://nim-lang.org/docs/sequtils.html#count,openArray%5BT%5D,T) it 
"Returns the number of occurrences of the item x in the container s."

Hope that helps! 

Reply via email to