MCPcopy Create free account

hub / github.com/PlummersSoftwareLLC/Primes / functions

Functions1,590 in github.com/PlummersSoftwareLLC/Primes

↓ 70 callersMethodrun_sieve
Calculate the primes up to the specified limit
PrimePython/solution_3/PrimePY.py:46
↓ 55 callersMethodget
(i: number)
PrimeTypeScript/solution_2/src/IBitArray.ts:4
↓ 52 callersMethodRun
()
PrimeCSharp/solution_1/Benchmarks/PrimeSieve - Mod.cs:50
↓ 36 callersMethodrun_sieve
Calculate the primes up to the specified limit
PrimePython/solution_2/PrimePY.py:40
↓ 35 callersMethodset
PrimeCPP/solution_2/PrimeCPP_array.cpp:58
↓ 32 callersMethodsize
PrimeCPP/solution_3/Sieve.h:78
↓ 29 callersMethodcount
PrimeCPP/solution_3/Sieve.h:83
↓ 27 callersMethodcount_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 callersMethodget_primes
Returns a generator to iterate over the found prime numbers. Requires a prior run_sieve call
PrimePython/solution_3/PrimePY.py:71
↓ 20 callersMethodjoin
()
PrimeJava/solution_4/src/PrimeSieveBase.java:169
↓ 18 callersMethodtoString
()
PrimeJava/solution_4/src/PrimeSieveBase.java:69
↓ 16 callersFunctiongetBenchmarkSettingAsString
settings string to use where it is directly outputted
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:39
↓ 15 callersMethodCopyOptions
()
PrimeCSharp/solution_1/Config/SettingsV1.cs:143
↓ 14 callersMethodRunSieve
()
PrimeGo/solution_2/sieve.go:9
↓ 14 callersMethodcount_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 callersMethodget_primes
Returns a generator to iterate over the found prime numbers. Requires a prior run_sieve call
PrimePython/solution_2/PrimePY.py:69
↓ 14 callersMethodget_print_results_output
(self, sieve, show_results, time, passes)
PrimePython/solution_2/tests/test_sieve.py:164
↓ 14 callersMethodget_print_results_output
(self, sieve, show_results, time, passes)
PrimePython/solution_3/tests/test_sieve.py:162
↓ 14 callersFunctionstrcmp_local
PrimeC/solution_5/src/benchmark/sieve_parseCommandline.h:15
↓ 13 callersMethodSetRange
(start, stop, step uint64)
PrimeGo/solution_2/storage.go:13
↓ 13 callersFunctionbenchmarkTime
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:93
↓ 13 callersMethodget_print_results_output
(self, sieve, show_results, time, passes)
PrimePython/solution_3/tests/test_sieve_numba.py:162
↓ 13 callersMethodparse_results
(self, results)
PrimePython/solution_2/tests/test_sieve.py:170
↓ 13 callersMethodparse_results
(self, results)
PrimePython/solution_3/tests/test_sieve.py:168
↓ 12 callersMethodparse_results
(self, results)
PrimePython/solution_3/tests/test_sieve_numba.py:168
↓ 11 callersFunctionsieve_delete
delete the sieve
PrimeC/solution_5/src/sieve/sieve_manager.h:51
↓ 11 callersMethodslice
(&mut self)
PrimeRust/solution_5/src/sieve/flag_data.rs:77
↓ 10 callersMethodRun
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 callersMethodsize
PrimeCPP/solution_2/PrimeCPP_array.cpp:64
↓ 10 callersMethodsize
PrimeCPP/solution_2/PrimeCPP_mask.cpp:117
↓ 9 callersMethodCountPrimes
()
PrimeGo/solution_2/sieve.go:10
↓ 9 callersFunctionNewBlockStorageFactory
(storage StorageFunc, props FactoryProps)
PrimeGo/solution_2/storage.go:30
↓ 9 callersMethodinsert
PrimeCPP/solution_3/Sieve.h:51
↓ 9 callersFunctionprime_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 callersFunctionsquare_start
Recommended start for resetting bits -- at the square of the factor
PrimeRust/solution_1/prime-sieve-rust/src/main.rs:84
↓ 8 callersFunctioncheckBenchmarkSettings
check the settings to make sure they are valid, dont overlap, etc.
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:15
↓ 8 callersFunctioncompute_start
calculate the first multiple of a prime number in a given range
PrimeC/solution_5/src/sieve/sieve_calc.h:25
↓ 8 callersMethodcount
(self, primes)
PrimePython/solution_2/tests/test_sieve.py:78
↓ 8 callersFunctioncountPrimes
PrimeCPP/solution_4/compile_time.hpp:35
↓ 8 callersFunctionensure_next_arg
Helper function to check for next argument
PrimeC/solution_5/src/benchmark/sieve_parseCommandline.h:22
↓ 8 callersFunctionfor_constexpr
PrimeCPP/solution_4/utils.hpp:26
↓ 8 callersFunctionit_works
(wheel_size: usize)
PrimeRust/solution_7/src/main.rs:125
↓ 8 callersFunctionlikely
PrimeC/solution_5/src/bitstorage/bitstorage_search.h:89
↓ 8 callersFunctionmoveAppend
PrimeCPP/solution_4/prime_cpp.cpp:132
↓ 8 callersMethodnew
(n: usize)
PrimeRust/solution_3/src/main.rs:8
↓ 8 callersMethodprint
PrimeKotlin/solution_1/src/commonMain/kotlin/main.kt:33
↓ 8 callersMethodrun
(Supplier<PrimeSieveBase> factory, String[] args)
PrimeJava/solution_4/src/PrimeSieveBase.java:89
↓ 8 callersFunctionsieve_create
PrimeC/solution_5/src/sieve/sieve_manager.h:14
↓ 8 callersFunctionusage
PrimeC/solution_5/src/benchmark/sieve_usage.h:1
↓ 7 callersMethodcount
(self, primes)
PrimePython/solution_3/tests/test_sieve.py:77
↓ 7 callersMethodcount
(self, primes)
PrimePython/solution_3/tests/test_sieve_numba.py:77
↓ 7 callersFunctionisdigit_local
PrimeC/solution_5/src/benchmark/sieve_parseCommandline.h:1
↓ 7 callersFunctionshakeSieve
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 callersFunctiontestPrimes
(limit uint64, newSieve SieveFunc, newStorage StorageFunc)
PrimeGo/solution_2/primes_test.go:8
↓ 7 callersFunctionvalidateResults
PrimeCPP/solution_3/PrimeCPP_CONSTEXPR.cpp:49
↓ 6 callersMethodIsCountCorrect
(int limit, int found)
PrimeCSharp/solution_1/Data/PrimeData.cs:28
↓ 6 callersMethodJoin
PrimeMixed/solution_5/main.cpp:135
↓ 6 callersFunctionNewSieve
NewSieve creates a new Sieve variable.
PrimeGo/solution_4/main.go:31
↓ 6 callersMethodgetRuntime
()
PrimeJava/solution_4/src/PrimeSieveBase.java:84
↓ 6 callersFunctionresetBenchmarkResult
PrimeC/solution_5/src/benchmark/sieve_tune.h:25
↓ 6 callersMethodrotate_left
(self, n: u32)
PrimeRust/solution_5/src/data_type.rs:58
↓ 6 callersFunctionusage
PrimeC/solution_4/sieve.c:302
↓ 6 callersFunctionusage
PrimeC/solution_1/sieve.c:267
↓ 5 callersMethodPrimeChecker
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 callersMethodPrimeCheckerMulti
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 callersFunctioncheckSieveWithBenchmarkSettings
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:54
↓ 5 callersMethodcount_ones
(self)
PrimeRust/solution_5/src/data_type.rs:53
↓ 5 callersFunctionfail
(err error)
PrimeGo/solution_2/tools/typegen.go:38
↓ 5 callersFunctiongetcmdparam
PrimeMinecraftDatapack/solution_1/playio.c:232
↓ 5 callersFunctionhascmdparam
PrimeMinecraftDatapack/solution_1/playio.c:227
↓ 5 callersMethodis_prime
(&self, index: usize)
PrimeRust/solution_5/src/sieve/flag_data/bit.rs:38
↓ 5 callersFunctionnewStubStorageFactory
()
PrimeGo/solution_2/storage_test.go:107
↓ 5 callersFunctionparse_int_arg
Helper function for integer argument parsing
PrimeC/solution_5/src/benchmark/sieve_parseCommandline.h:57
↓ 5 callersFunctionsieve_clear
PrimeC/solution_5/src/sieve/sieve_manager.h:35
↓ 4 callersMethodBuild
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 callersMethodCount
(val bool, start, stop uint64)
PrimeGo/solution_2/storage.go:15
↓ 4 callersFunctionPr
Pr converts a sieve index to the corresponing number.
PrimeGo/solution_4/main.go:39
↓ 4 callersMethodRun
(SettingsV1 options)
PrimeCSharp/solution_1/Program.cs:33
↓ 4 callersFunctionceildiv
PrimeCPP/solution_4/utils.hpp:59
↓ 4 callersFunctioncontinuePattern
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 callersFunctiondoGC
()
PrimeTypeScript/solution_2/src/index.ts:103
↓ 4 callersFunctiongetBit
PrimeC/solution_3/primes_words.c:88
↓ 4 callersFunctionnewRecStorageFactory
()
PrimeGo/solution_2/storage_test.go:37
↓ 4 callersFunctionprepareBenchmarkGlobals
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:44
↓ 4 callersFunctionrunOne
(createArray: (sieveSize: number) => IBitArray, sieveSize: number)
PrimeTypeScript/solution_2/src/index.ts:86
↓ 4 callersFunctionrun_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 callersFunctionstripeSieveBlock
PrimeC/solution_5/src/sieve/sieve_stripe.h:1
↓ 4 callersMethodtestBitTrue
(index)
PrimeJavaScript/solution_1/PrimeSieve.mjs:28
↓ 4 callersMethodtestBitTrue
(index)
PrimeJavaScript/solution_1/PrimeJavaScript_memcopy.js:60
↓ 4 callersMethodtestBitTrue
(index)
PrimeJavaScript/solution_1/PrimeJavaScript_cluster.js:105
↓ 4 callersFunctionusqrt
fast integer square root https://en.wikipedia.org/wiki/Fast_inverse_square_root
PrimeC/solution_5/src/sieve/sieve_calc.h:3
↓ 3 callersMethodCountPrimes
CountPrimes return the number of primes + 1 encoded in sieve.
PrimeGo/solution_4/main.go:154
↓ 3 callersMethodEnumeratePrimes
()
PrimeCSharp/solution_4/PrimeCS.cs:13
↓ 3 callersFunctionIn
In converts an odd number to sieve index. This is the inverse of Pr().
PrimeGo/solution_4/main.go:45
↓ 3 callersFunctionNewReverseBlockStorageFactory
(storage StorageFunc, props FactoryProps)
PrimeGo/solution_2/storage.go:66
↓ 3 callersFunctionNewSegmentedSieveFactory
(props FactoryProps)
PrimeGo/solution_2/sieve.go:68
↓ 3 callersMethodRun
<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 callersMethodStart
PrimeMixed/solution_5/main.cpp:129
↓ 3 callersFunctionbenchmark
PrimeC/solution_5/src/benchmark/sieve_benchmark.h:110
↓ 3 callersFunctionbenchmarkPrimeSieve
PrimeKotlin/solution_1/src/commonMain/kotlin/main.kt:10
next →1–100 of 1,590, ranked by callers