This document presents a parallelization technique for the AKS algorithm, a deterministic polynomial-time algorithm for primality testing, enhancing its performance via message-passing parallelism and workload distribution strategies. The experiments conducted on a high-performance computing system showed up to 36 times speedup compared to existing implementations, particularly highlighting the effectiveness of the dynamic workload-distribution strategy. The paper details the methodology, including the core computational steps of the AKS algorithm and implications for both theoretical and practical advancements in primality testing.