Question: Implement a program in Python that does the following: 1) uses the 'numbers' list (given below) as the source of numbers 2) searches through the
Implement a program in Python that does the following:
1) uses the 'numbers' list (given below) as the source of numbers 2) searches through the 'numbers' list for Prime numbers 3) finds and displays only the first THREE occurrences of the Prime numbers
numbers = [6919, 6920, 6979, 6980, 6981, 6982, 6983, 6984, 6985, 6986, 6987, 6988, 6989, 6990, 6992, 6993, 6994, 6995, 6996, 6998, 7808, 7809, 7810, 7811, 7812, 7813, 7814, 7815, 7816, 7818, 7819, 7820, 7821, 7822, 7824, 7825, 7826, 7827, 8715, 8716, 9753, 9754, 9755, 9756, 9757, 9758, 9759, 9760, 9761, 9762, 9763, 9764, 9765, 9766, 9768, 9770, 9771, 9772, 10077, 10078, 10080, 10081, 10082, 10083, 10084, 10085, 10086, 10087, 10088, 10089, 10090, 10092, 10093, 10094, 10095, 10096, 10097, 10098, 10100, 10101, 10102, 10104, 10105, 10106, 10107, 10108, 10109, 10110, 10112, 10113, 10114, 10115, 10116, 11006, 11007, 11008, 11009, 11010, 13021, 13022, 13023, 13024, 13025, 13026, 13027, 13028, 13029, 13030, 13031, 13032, 13034, 13035, 13036, 13037, 13038, 13039, 13040, 13041, 13042, 13044, 13045, 13046, 13047, 13048, 13050, 13986, 13987, 13988, 13989, 13990, 13991, 13992, 13993, 13994, 13995, 13996, 13998, 14000, 14001, 14002, 15224, 15225, 15226, 15228, 15229, 15230, 15231, 15232, 15234, 15235, 15236, 15237, 15238, 15239, 15240, 15241, 15242, 15243, 15244, 15245, 15246, 15247, 15248, 15249, 15250, 15251, 15252, 15253, 15254, 17409, 17410, 17411, 17412, 17413, 17414, 17415, 17416, 17418, 17419, 17420, 17421, 17422, 17423, 17424]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
