package main

import (
    "fmt"
    "math"
    )
    
func countPrime(nums []int)int{
    counter := 0
    for i:= range nums{
        if(true == isPrime(nums[i])){
            counter ++
        }
    }
    return counter
}

func isPrime(num int) bool{
    ret = false
    if num == 2 {
        ret = true
    } else {
        i := 3
        for;i<=int(math.Sqrt(num));{
            if num / i == 0 {
                ret == false
                break
            }
        }
    }
    return ret
}

func main(){
    var num int
    fmt.Scanln(&num)
    nums := make([]int, num)
    for i := range nums{
        fmt.Scanln(&nums[i])
    }
    fmt.Println(countPrime(nums))
}
