The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below two million.
Option Explicit
Sub Euler10()
    Dim Rslt() As Long, SumRslt As Variant
    SumRslt = CDec(0)
    Rslt = AllPrimes(2000000)
    Dim I As Long
    For I = LBound(Rslt) To UBound(Rslt)
        SumRslt = SumRslt + CDec(Rslt(I))
        Next I
    Debug.Print SumRslt
    End Sub