Jews can’t eat pig because it’s a scavenger and eats the dead therefore unclean. If the pig is farm raised it doesn’t eat the dead so would it be clean to eat?
We are choosing to answer your question because you are in not alone in your misconception about kosher food. The mistake you make is quite common, but it is based on a completely incorrect basic premise.
Not eating pig has nothing to do with it being a scavenger. The prohibition is based on Leviticus 11:7 where God specifically forbids it with no reason given. That animal is singled out and mentioned by name because it has one of the two signs that mark an animal as kosher. Pigs have split hooves but do not chew the cud.
This prohibition is, for example, different from the injunction not to harvest the produce of the land of Israel during the Shmittah cycle every seven years (Exodus 23:11). In that case, Israel has developed a healthy industry in hydroponics growing crops in glass houses and in large trays of water. Carrots, as one example, aren’t the problem; the problem is only carrots grown in the earth during that special seventh year. Not so with the pig —regardless of how it is raised, the animal is forbidden, end of discussion.