Submit a Python file containing a function countPrimes which accepts two arrays of integers.

Responsive Centered Red Button

Need Help with this Question or something similar to this? We got you! Just fill out the order form (follow the link below), and your paper will be assigned to an expert to help you ASAP.

Requirements
• You are required to submit a Python file containing a function countPrimes which accepts
two arrays of integers. The function will return the total number of integers (from both lists)
which are prime numbers. The general structure of your file, including some sample test code,
will be:
from multiprocessing import *
# other user-defined functions here
def countPrimes(listA, listB):
# function body here
if __name__ == ‘__main__’:
list1 = [7, 8, 23, 64, 2, 3]
list2 = [64, 54, 31, 35, 36]
total = countPrimes(list1, list2)
print(total)                                      # should display 5
• countPrimes is required to create two processes, with each process operating on one of the
lists. The child processes should use a Queue to communicate partial results to the parent
process. Additional functions may be used to compute the partial results.
Save the file as parallelPrimes.py

How to create Testimonial Carousel using Bootstrap5

Clients' Reviews about Our Services