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 listJul 2, 2026 22:52A_ShamanA_ShamanScore: 66,373Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 22:5566,12668,058,77656,947,0001,244,0002,113,536
2Jul 2, 2026 22:5566,21967,723,12357,053,0001,220,0002,113,536
3Jul 2, 2026 22:5566,21971,710,71357,138,0001,135,0002,113,536
4Jul 2, 2026 22:5566,31967,886,67257,221,0001,140,0002,113,536
5Jul 2, 2026 22:5566,37368,215,10557,151,0001,258,0002,113,536
6Jul 2, 2026 22:5566,49568,345,12957,367,0001,149,0002,113,536
7Jul 2, 2026 22:5566,49768,434,89457,242,0001,276,0002,113,536
8Jul 2, 2026 22:5566,50467,913,44057,287,0001,237,0002,113,536
9Jul 2, 2026 22:5566,76074,629,72657,490,0001,259,0002,113,536