Here's a tool that I wrote that I would like to share with the community. It takes a file with a bunch of prime numbers in it, picks a random set from the list, and formats that set into a C style array that one can read into their C source code.
Hope you find it useful.
Use the following command to build:
[CMD=""]gcc -std=c99 -pedantic -Wall -Wextra -o primes primes.c[/CMD]
The big 6 digit file is in 2 parts. Just do this:
[CMD=""]cat primesin6.1 primesin6.2 > primesin6[/CMD]
Hope you find it useful.
Use the following command to build:
[CMD=""]gcc -std=c99 -pedantic -Wall -Wextra -o primes primes.c[/CMD]
The big 6 digit file is in 2 parts. Just do this:
[CMD=""]cat primesin6.1 primesin6.2 > primesin6[/CMD]