SoftWx.Numerics
Primes
SoftWx.Numerics | Primes | |
---|---|---|
1 | 45 | |
3 | 2,379 | |
- | 0.7% | |
10.0 | 6.4 | |
over 3 years ago | about 1 month ago | |
C# | C# | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
SoftWx.Numerics
-
Math.Sqrt is fantastically slow on AMD 9 3900X 12 core, it was destroyed by small 4 core mobile CPU from Intel. Is there somebody with i9 12900K?
By the way the implementation in the .NET example is really not a good way to check if a number is prime or list them for that matter. Using Miller-Rabin is faster by a lot, this code gives 400ms w/ Parallel and 2 seconds with single threaded on my i5-1135G7. Code taken from SoftWx.Numerics:
Primes
- Primes – A Software Drag Race
- Is this an efficient way to check if a number is prime number?
- I need some help on a project!!!
-
Has anyone solved the prime number problem on SPOJ yet using pure python?
Take a look at Dave Plummer’s Prime Sieve project.
- Top 5 Fastest Programming Languages: Rust, C++, Swift, Java, and 90 more compared!
-
Zig wins Dave Plummer's prime sieve benchmark ... but via a problematic metric
There's a dedicated and quite cool website where you can browse the benchmark results: https://github.com/PlummersSoftwareLLC/Primes
- Since when did Python haters spread out everywhere? Maybe DNF5 would be faster because of ditched it, maybe.
- creating a vec takes forever?
-
Python vs. Nodejs vs. Lua
Should look into Software Drag Racing https://github.com/PlummersSoftwareLLC/Primes
-
We wouldn’t even consider writing back-end code for a website CMS in anything other than C, and we certainly wouldn’t use any of the interpreted languages that have sprung up in the last couple of decades and positioned themselves as the de facto go-to standards for web development.
Compiler WTF??? Can't you just use xxd to turn a hexdump into a binary like a real programmer would do?!?
What are some alternatives?
primesieve - 🚀 Fast prime number generator
Mudlet - ⚔️ A cross-platform, open source, and super fast MUD client with scripting in Lua
RoaringBitmap - A better compressed bitset in Java: used by Apache Spark, Netflix Atlas, Apache Pinot, Tablesaw, and many others
PrimesResult - The results of the Dave Plummer's Primes Drag Race
LMRTFY - Let Me Run That For You: A C++20 Thread Pool Library
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
nimpylib - Some python standard library functions ported to Nim
rust - Rust for the xtensa architecture. Built in targets for the ESP32 and ESP8266
pictoprime - Generate prime numbers from pictures!
mpp - A modern C++ matrix library
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
missing-semester - The Missing Semester of Your CS Education 📚