package main

import (

“fmt”

)

func prime(x, y int) []int{

z := []int{}

for i := x; i < y; i++ {

for j := 2; j < i; j++ {

if i%j == 0 {

break

} else {

z = append(z, i)

break

}

}

}

return z

}

func sum(xi []int)int {

sum := 0

for _, v := range xi {

sum += v

}

return sum

}

func main() {

```
s := prime(10, 100)
fmt.Println(s)
```

}