Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
hw02.c
hw02.class
hw02.java
hw02.py
readme.md
timing.txt

readme.md

Prime Number Programs

All these programs use brute force to find the possible primes, or find if a certain number is prime or composite by checking the inputs going up.

The python problem set has a double loop, full recursion, and a loop and recursion for the test case. Using the pypy python executable leads to a much greater speed boost than the default python 2.7 or 3.1 interperters.

C wins the race for speed in this case, and Java is not far behind pypy.

Something went wrong with that request. Please try again.