APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Computer Program Detail Page

Item Picture
Prime Counting Function Model
written by Wolfgang Christian
The Prime Counting Function model uses the trial division algorithm to compute the number of primes less than or equal to the number n. Although the trial division algorithm is inefficient, we use it to perform a lengthy calculation while a standard EJS simulation thread accumulates and plots data from the parallel computation.   Users can vary the number of independent threads and observe the computational time.

The Prime Counting Function Model was created using the Easy Java Simulations (EJS) modeling tool.  It is distributed as a ready-to-run (compiled) Java archive.  Double clicking the model's jar file will run the simulation if Java is installed.

Please note that this resource requires at least version 1.6 of Java.
1 source code document is available
Subjects Levels Resource Types
General Physics
- Computational Physics
- Upper Undergraduate
- Graduate/Professional
- Instructional Material
= Interactive Simulation
Intended Users Formats Ratings
- Learners
- Professional/Practitioners
- Researchers
- Educators
- application/java
  • Currently 0.0/5

Want to rate this material?
Login here!

Access Rights:
Free access
This material is released under a GNU General Public License Version 3 license.
Rights Holder:
Wolfgang Christian
parallel Java, parallel programming
Record Cloner:
Metadata instance created October 11, 2013 by Wolfgang Christian
Record Updated:
October 15, 2017 by Wolfgang Christian
Last Update
when Cataloged:
October 11, 2013
ComPADRE is beta testing Citation Styles!

Record Link
AIP Format
W. Christian, Computer Program PRIME COUNTING FUNCTION MODEL, Version 1.0 (2013), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13030&DocID=3596).
W. Christian, Computer Program PRIME COUNTING FUNCTION MODEL, Version 1.0 (2013), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13030&DocID=3596>.
APA Format
Christian, W. (2013). Prime Counting Function Model (Version 1.0) [Computer software]. Retrieved May 22, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13030&DocID=3596
Chicago Format
Christian, Wolfgang. "Prime Counting Function Model." Version 1.0. https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13030&DocID=3596 (accessed 22 May 2024).
MLA Format
Christian, Wolfgang. Prime Counting Function Model. Vers. 1.0. Computer software. 2013. Java 1.6. 22 May 2024 <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13030&DocID=3596>.
BibTeX Export Format
@misc{ Author = "Wolfgang Christian", Title = {Prime Counting Function Model}, Month = {October}, Year = {2013} }
Refer Export Format

%A Wolfgang Christian %T Prime Counting Function Model %D October 11, 2013 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13030&DocID=3596 %O 1.0 %O application/java

EndNote Export Format

%0 Computer Program %A Christian, Wolfgang %D October 11, 2013 %T Prime Counting Function Model %7 1.0 %8 October 11, 2013 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=13030&DocID=3596

Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.

Citation Source Information

The AIP Style presented is based on information from the AIP Style Manual.

The APA Style presented is based on information from APA Style.org: Electronic References.

The Chicago Style presented is based on information from Examples of Chicago-Style Documentation.

The MLA Style presented is based on information from the MLA FAQ.

Prime Counting Function Model:

Is Based On Easy Java Simulations Modeling and Authoring Tool

The Easy Java Simulations Modeling and Authoring Tool is needed to explore the computational model used in the Prime Counting Function Model.

relation by Wolfgang Christian

Know of another related resource? Login to relate this resource to it.
Save to my folders


Related Materials

Similar Materials

OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book