This document discusses optimizations made to code for finding prime numbers in Java and C++. It analyzes performance of different implementations, including using primitives vs wrappers, creating a PrimeFinder class, bringing the square root calculation inside the loop, and adding an is_prime method. Graphs show performance improvements from these changes, with the fastest implementations taking around 2-3 million nanoseconds to find primes up to 10,000.