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 28, 2026 12:04Dominique GarmierDominique GarmierScore: 10,653Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 12:0510,50021,572,7978,214,0001,026,0002,359,296
2Apr 28, 2026 12:0510,54527,414,1038,249,0001,031,0002,355,200
3Apr 28, 2026 12:0510,56123,873,9948,262,0001,032,0002,363,392
4Apr 28, 2026 12:0510,57625,843,0238,273,0001,034,0002,428,928
5Apr 28, 2026 12:0510,65330,277,4208,334,0001,041,0002,359,296
6Apr 28, 2026 12:0510,67330,595,7598,350,0001,043,0002,351,104
7Apr 28, 2026 12:0510,69329,521,2048,365,0001,045,0002,363,392
8Apr 28, 2026 12:0510,69425,858,7578,366,0001,045,0002,326,528
9Apr 28, 2026 12:0510,71130,977,7658,379,0001,047,0002,363,392