Artificial intelligence (AI) is an advanced scientific field that aims to develop computers and other computer systems that can make decisions and perform actions autonomously, simulating human intelligence. However, like any other scientific field, artificial intelligence is not free from biases and potential challenges. According to many studies, bias has been identified in many AI (artificial intelligence, but from this point on we will refer to it by its acronym) entities, especially in machine learning (MA). The purpose of this paper is to provide a general presentation of two categories of prejudice in AI and MA, specifically: racial prejudice and gender prejudice and then analyze the impact and risks they have/could have in society.