Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PlummersSoftwareLLC/Primes
/ functions
Functions
1,590 in github.com/PlummersSoftwareLLC/Primes
⨍
Functions
1,590
◇
Types & classes
355
↓ 70 callers
Method
run_sieve
Calculate the primes up to the specified limit
PrimePython/solution_3/PrimePY.py:46
↓ 55 callers
Method
get
(i: number)
PrimeTypeScript/solution_2/src/IBitArray.ts:4
↓ 52 callers
Method
Run
()
PrimeCSharp/solution_1/Benchmarks/PrimeSieve - Mod.cs:50
↓ 36 callers
Method
run_sieve
Calculate the primes up to the specified limit
PrimePython/solution_2/PrimePY.py:40
↓ 35 callers
Method
set
PrimeCPP/solution_2/PrimeCPP_array.cpp:58
↓ 32 callers
Method
size
PrimeCPP/solution_3/Sieve.h:78
↓ 29 callers
Method
count
PrimeCPP/solution_3/Sieve.h:83
↓ 27 callers
Method
count_primes
Return the count of bits that are still set in the sieve. Assumes you've already called run_sieve, of course!
PrimePython/solution_3/PrimePY.py:62
↓ 27 callers
Method
get_primes
Returns a generator to iterate over the found prime numbers. Requires a prior run_sieve call
PrimePython/solution_3/PrimePY.py:71
↓ 20 callers
Method
join
()
PrimeJava/solution_4/src/PrimeSieveBase.java:169
↓ 18 callers
Method
toString
()
PrimeJava/solution_4/src/PrimeSieveBase.java:69
↓ 16 callers
Function
getBenchmarkSettingAsString
settings string to use where it is directly outputted
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:39
↓ 15 callers
Method
CopyOptions
()
PrimeCSharp/solution_1/Config/SettingsV1.cs:143
↓ 14 callers
Method
RunSieve
()
PrimeGo/solution_2/sieve.go:9
↓ 14 callers
Method
count_primes
Return the count of bits that are still set in the sieve. Assumes you've already called run_sieve, of course!
PrimePython/solution_2/PrimePY.py:62
↓ 14 callers
Method
get_primes
Returns a generator to iterate over the found prime numbers. Requires a prior run_sieve call
PrimePython/solution_2/PrimePY.py:69
↓ 14 callers
Method
get_print_results_output
(self, sieve, show_results, time, passes)
PrimePython/solution_2/tests/test_sieve.py:164
↓ 14 callers
Method
get_print_results_output
(self, sieve, show_results, time, passes)
PrimePython/solution_3/tests/test_sieve.py:162
↓ 14 callers
Function
strcmp_local
PrimeC/solution_5/src/benchmark/sieve_parseCommandline.h:15
↓ 13 callers
Method
SetRange
(start, stop, step uint64)
PrimeGo/solution_2/storage.go:13
↓ 13 callers
Function
benchmarkTime
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:93
↓ 13 callers
Method
get_print_results_output
(self, sieve, show_results, time, passes)
PrimePython/solution_3/tests/test_sieve_numba.py:162
↓ 13 callers
Method
parse_results
(self, results)
PrimePython/solution_2/tests/test_sieve.py:170
↓ 13 callers
Method
parse_results
(self, results)
PrimePython/solution_3/tests/test_sieve.py:168
↓ 12 callers
Method
parse_results
(self, results)
PrimePython/solution_3/tests/test_sieve_numba.py:168
↓ 11 callers
Function
sieve_delete
delete the sieve
PrimeC/solution_5/src/sieve/sieve_manager.h:51
↓ 11 callers
Method
slice
(&mut self)
PrimeRust/solution_5/src/sieve/flag_data.rs:77
↓ 10 callers
Method
Run
Run runs benchmark for an implementation specified in the Benchmark object, calculating primes up to a limit for a given duration.
PrimeGo/solution_2/benchmark.go:94
↓ 10 callers
Method
size
PrimeCPP/solution_2/PrimeCPP_array.cpp:64
↓ 10 callers
Method
size
PrimeCPP/solution_2/PrimeCPP_mask.cpp:117
↓ 9 callers
Method
CountPrimes
()
PrimeGo/solution_2/sieve.go:10
↓ 9 callers
Function
NewBlockStorageFactory
(storage StorageFunc, props FactoryProps)
PrimeGo/solution_2/storage.go:30
↓ 9 callers
Method
insert
PrimeCPP/solution_3/Sieve.h:51
↓ 9 callers
Function
prime_stop
calculate the maximum prime number that can be used for a given range in bits we have to take the sqaure of the real number, so we have to double, squ
PrimeC/solution_5/src/sieve/sieve_calc.h:19
↓ 9 callers
Function
square_start
Recommended start for resetting bits -- at the square of the factor
PrimeRust/solution_1/prime-sieve-rust/src/main.rs:84
↓ 8 callers
Function
checkBenchmarkSettings
check the settings to make sure they are valid, dont overlap, etc.
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:15
↓ 8 callers
Function
compute_start
calculate the first multiple of a prime number in a given range
PrimeC/solution_5/src/sieve/sieve_calc.h:25
↓ 8 callers
Method
count
(self, primes)
PrimePython/solution_2/tests/test_sieve.py:78
↓ 8 callers
Function
countPrimes
PrimeCPP/solution_4/compile_time.hpp:35
↓ 8 callers
Function
ensure_next_arg
Helper function to check for next argument
PrimeC/solution_5/src/benchmark/sieve_parseCommandline.h:22
↓ 8 callers
Function
for_constexpr
PrimeCPP/solution_4/utils.hpp:26
↓ 8 callers
Function
it_works
(wheel_size: usize)
PrimeRust/solution_7/src/main.rs:125
↓ 8 callers
Function
likely
PrimeC/solution_5/src/bitstorage/bitstorage_search.h:89
↓ 8 callers
Function
moveAppend
PrimeCPP/solution_4/prime_cpp.cpp:132
↓ 8 callers
Method
new
(n: usize)
PrimeRust/solution_3/src/main.rs:8
↓ 8 callers
Method
print
PrimeKotlin/solution_1/src/commonMain/kotlin/main.kt:33
↓ 8 callers
Method
run
(Supplier<PrimeSieveBase> factory, String[] args)
PrimeJava/solution_4/src/PrimeSieveBase.java:89
↓ 8 callers
Function
sieve_create
PrimeC/solution_5/src/sieve/sieve_manager.h:14
↓ 8 callers
Function
usage
PrimeC/solution_5/src/benchmark/sieve_usage.h:1
↓ 7 callers
Method
count
(self, primes)
PrimePython/solution_3/tests/test_sieve.py:77
↓ 7 callers
Method
count
(self, primes)
PrimePython/solution_3/tests/test_sieve_numba.py:77
↓ 7 callers
Function
isdigit_local
PrimeC/solution_5/src/benchmark/sieve_parseCommandline.h:1
↓ 7 callers
Function
shakeSieve
This is the main module that directs all the work sieve_size in a real number that is the maximum in the sieve (not in bits) block_size is in bi
PrimeC/solution_5/src/sieve_base.c:30
↓ 7 callers
Function
testPrimes
(limit uint64, newSieve SieveFunc, newStorage StorageFunc)
PrimeGo/solution_2/primes_test.go:8
↓ 7 callers
Function
validateResults
PrimeCPP/solution_3/PrimeCPP_CONSTEXPR.cpp:49
↓ 6 callers
Method
IsCountCorrect
(int limit, int found)
PrimeCSharp/solution_1/Data/PrimeData.cs:28
↓ 6 callers
Method
Join
PrimeMixed/solution_5/main.cpp:135
↓ 6 callers
Function
NewSieve
NewSieve creates a new Sieve variable.
PrimeGo/solution_4/main.go:31
↓ 6 callers
Method
getRuntime
()
PrimeJava/solution_4/src/PrimeSieveBase.java:84
↓ 6 callers
Function
resetBenchmarkResult
PrimeC/solution_5/src/benchmark/sieve_tune.h:25
↓ 6 callers
Method
rotate_left
(self, n: u32)
PrimeRust/solution_5/src/data_type.rs:58
↓ 6 callers
Function
usage
PrimeC/solution_4/sieve.c:302
↓ 6 callers
Function
usage
PrimeC/solution_1/sieve.c:267
↓ 5 callers
Method
PrimeChecker
PrimeChecker fill sieve[minT:maxT] using all primes found in sieve[0:maxP]. So sieve[0:maxP] should be ready and maxP <= minT < maxT.
PrimeGo/solution_4/main.go:60
↓ 5 callers
Method
PrimeCheckerMulti
PrimeCheckerMulti split the slice sieve[from:to] to numProc (almost) equal parts and run numProc PrimeChecker workers to do the checking on this non o
PrimeGo/solution_4/main.go:87
↓ 5 callers
Function
checkSieveWithBenchmarkSettings
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:54
↓ 5 callers
Method
count_ones
(self)
PrimeRust/solution_5/src/data_type.rs:53
↓ 5 callers
Function
fail
(err error)
PrimeGo/solution_2/tools/typegen.go:38
↓ 5 callers
Function
getcmdparam
PrimeMinecraftDatapack/solution_1/playio.c:232
↓ 5 callers
Function
hascmdparam
PrimeMinecraftDatapack/solution_1/playio.c:227
↓ 5 callers
Method
is_prime
(&self, index: usize)
PrimeRust/solution_5/src/sieve/flag_data/bit.rs:38
↓ 5 callers
Function
newStubStorageFactory
()
PrimeGo/solution_2/storage_test.go:107
↓ 5 callers
Function
parse_int_arg
Helper function for integer argument parsing
PrimeC/solution_5/src/benchmark/sieve_parseCommandline.h:57
↓ 5 callers
Function
sieve_clear
PrimeC/solution_5/src/sieve/sieve_manager.h:35
↓ 4 callers
Method
Build
Build fill sieve with true for all non primes. We make no assumptions about the first odd primes. We do not suppose that 3,5,7 or 11 are primes. As th
PrimeGo/solution_4/main.go:132
↓ 4 callers
Method
Count
(val bool, start, stop uint64)
PrimeGo/solution_2/storage.go:15
↓ 4 callers
Function
Pr
Pr converts a sieve index to the corresponing number.
PrimeGo/solution_4/main.go:39
↓ 4 callers
Method
Run
(SettingsV1 options)
PrimeCSharp/solution_1/Program.cs:33
↓ 4 callers
Function
ceildiv
PrimeCPP/solution_4/utils.hpp:59
↓ 4 callers
Function
continuePattern
continue a pattern that start at <source_start> with a size of <size>. repeat this pattern up to <destination_stop>. for small sizes, this is done on
PrimeC/solution_5/src/bitstorage/bitstorage_continuePattern.h:18
↓ 4 callers
Function
doGC
()
PrimeTypeScript/solution_2/src/index.ts:103
↓ 4 callers
Function
getBit
PrimeC/solution_3/primes_words.c:88
↓ 4 callers
Function
newRecStorageFactory
()
PrimeGo/solution_2/storage_test.go:37
↓ 4 callers
Function
prepareBenchmarkGlobals
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:44
↓ 4 callers
Function
runOne
(createArray: (sieveSize: number) => IBitArray, sieveSize: number)
PrimeTypeScript/solution_2/src/index.ts:86
↓ 4 callers
Function
run_sieve_segment
Purpose: This function calculates a segment of the sieve. The calculations starts are start_nr under the assumption that smaller numbers
PrimeC/solution_3/primes_words.c:210
↓ 4 callers
Function
stripeSieveBlock
PrimeC/solution_5/src/sieve/sieve_stripe.h:1
↓ 4 callers
Method
testBitTrue
(index)
PrimeJavaScript/solution_1/PrimeSieve.mjs:28
↓ 4 callers
Method
testBitTrue
(index)
PrimeJavaScript/solution_1/PrimeJavaScript_memcopy.js:60
↓ 4 callers
Method
testBitTrue
(index)
PrimeJavaScript/solution_1/PrimeJavaScript_cluster.js:105
↓ 4 callers
Function
usqrt
fast integer square root https://en.wikipedia.org/wiki/Fast_inverse_square_root
PrimeC/solution_5/src/sieve/sieve_calc.h:3
↓ 3 callers
Method
CountPrimes
CountPrimes return the number of primes + 1 encoded in sieve.
PrimeGo/solution_4/main.go:154
↓ 3 callers
Method
EnumeratePrimes
()
PrimeCSharp/solution_4/PrimeCS.cs:13
↓ 3 callers
Function
In
In converts an odd number to sieve index. This is the inverse of Pr().
PrimeGo/solution_4/main.go:45
↓ 3 callers
Function
NewReverseBlockStorageFactory
(storage StorageFunc, props FactoryProps)
PrimeGo/solution_2/storage.go:66
↓ 3 callers
Function
NewSegmentedSieveFactory
(props FactoryProps)
PrimeGo/solution_2/sieve.go:68
↓ 3 callers
Method
Run
<summary> Run all requested sieves based on the provided settings. </summary> <param name="settings">Collection of options used to determine which sie
PrimeCSharp/solution_1/SieveRunnerV2.cs:23
↓ 3 callers
Method
Start
PrimeMixed/solution_5/main.cpp:129
↓ 3 callers
Function
benchmark
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:110
↓ 3 callers
Function
benchmarkPrimeSieve
PrimeKotlin/solution_1/src/commonMain/kotlin/main.kt:10
next →
1–100 of 1,590, ranked by callers