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 listSep 30, 2026 05:57Andrew EpsteinAndrew EpsteinScore: 3,973Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 30, 2026 06:003,95012,552,1993,476,000020,480
2Sep 30, 2026 06:003,95511,907,9973,481,000020,480
3Sep 30, 2026 06:003,96312,029,8623,488,000020,480
4Sep 30, 2026 06:003,96512,590,3083,490,000020,480
5Sep 30, 2026 06:003,97312,015,7853,497,000020,480
6Sep 30, 2026 06:003,97912,540,5683,502,000020,480
7Sep 30, 2026 06:003,98212,637,8133,505,000020,480
8Sep 30, 2026 06:003,98512,083,9773,507,000020,480
9Sep 30, 2026 06:003,99012,644,0213,512,000020,480