Apricot kernels contain vitamin B17, which is also called laetrile. It is used in some alternative medical circles as a way to prevent cancer, including ovarian cancer.
One article (1) looked at the use of apricot kernels in the prevention of ovarian cancer. They noted that, besides apricot kernels, laetrile can be found in peaches, oranges, nectarines, and cherries. It is also found in wheat grass and other grasses. It noted that the part of the apricot kernel that prevents ovarian cancer is the seed, which is hidden inside the wooden shell.
It indicated that, in those cultures where apricot kernels are eaten, such as in several Indian tribes, they have a very low risk of getting any type of cancer, including ovarian cancer. The research on apricot kernels and the prevention of cancer is sparse, however, so it cannot be safely said that it can actually prevent ovarian cancer in women.
Source: 1.Ovarian cancer: The Silent Killer. http://thedontolman.com/blog/ovarian-cancer-the-silent-killer/. Accessed 9/11/16.