document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.     Function PSieve(ByVal limit As Integer) As Boolean()
  2.         Dim input(limit) As Boolean
  3.         input(0) = True : input(1) = True
  4.         Parallel.For(2, CInt(Math.Sqrt(input.Length)), Sub(i)
  5.                                                            If Not input(i) Then
  6.                                                                Dim j As Integer = 2 * i
  7.                                                                While j <= input.Length - 1
  8.                                                                    input(j) = True
  9.                                                                    j += i
  10.                                                                End While
  11.                                                            End If
  12.                                                        End Sub)
  13.         Return input
  14.     End Function
');