https://github.com/jbkahn/findprimes.c_and_randbyte.c
Two programs written in C for school
https://github.com/jbkahn/findprimes.c_and_randbyte.c
Last synced: about 1 year ago
JSON representation
Two programs written in C for school
- Host: GitHub
- URL: https://github.com/jbkahn/findprimes.c_and_randbyte.c
- Owner: JBKahn
- Created: 2013-01-22T06:13:26.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-22T06:17:56.000Z (over 13 years ago)
- Last Synced: 2025-03-02T00:28:27.896Z (over 1 year ago)
- Language: C
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
findprimes.c_and_randbyte.c
===========================
Two programs written in C for school
findprimes.c
Finds all prime numbers up to a given bound using the "Sieve of Eratosthenes" algorithm using a given number of children. These children are assignment numbers to use by the parent process through pipes and are checked to ensure they do not overstep their position in the algorithm.
randbyte.c
Prints a single random byte (character) of one or more files. without files listed it will do this with stdin.