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 listApr 23, 2026 09:22Charles CabergsCharles CabergsScore: 26,887Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 09:2226,71241,625,47222,485,0001,022,0002,445,312stderr
2Apr 23, 2026 09:2226,75041,439,13222,517,0001,023,0002,457,600stderr
3Apr 23, 2026 09:2226,80045,571,89622,559,0001,025,0002,449,408stderr
4Apr 23, 2026 09:2226,87638,110,52921,595,0002,056,0002,535,424stderr
5Apr 23, 2026 09:2226,88739,193,66221,604,0002,057,0002,449,408stderr
6Apr 23, 2026 09:2226,89740,419,76021,612,0002,058,0002,441,216stderr
7Apr 23, 2026 09:2226,91545,787,12822,657,0001,029,0002,449,408stderr
8Apr 23, 2026 09:2226,98445,680,64421,682,0002,064,0002,445,312stderr
9Apr 23, 2026 09:2227,02941,974,82020,813,0002,973,0002,445,312stderr