Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listOct 6, 2026 08:41janwwwjanwwwScore: 6,794,398Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2026 08:466,759,3315,958,871,4375,947,210,0001,002,0002,113,536
2Oct 6, 2026 08:466,783,5435,980,586,3595,967,516,0002,002,0002,113,536
3Oct 6, 2026 08:466,787,4845,983,771,9335,971,986,0001,000,0002,113,536
4Oct 6, 2026 08:466,787,6545,983,764,7665,972,132,0001,004,0002,113,536
5Oct 6, 2026 08:466,794,3985,989,885,6965,978,071,0001,000,0002,113,536
6Oct 6, 2026 08:466,796,2955,991,372,8845,979,740,0001,000,0002,113,536
7Oct 6, 2026 08:466,808,2296,001,932,4225,990,242,0001,000,0002,113,536
8Oct 6, 2026 08:466,820,1526,015,034,2695,999,734,0002,000,0002,113,536
9Oct 6, 2026 08:466,829,4486,021,107,6236,008,915,0001,000,0002,113,536