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 06:26Andrew EpsteinAndrew EpsteinScore: 3,905Success
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:293,89211,852,2123,425,000020,480
2Sep 30, 2026 06:293,89712,272,7103,430,000020,480
3Sep 30, 2026 06:293,90212,525,4763,434,000020,480
4Sep 30, 2026 06:293,90412,003,6333,436,000020,480
5Sep 30, 2026 06:293,90511,867,9243,437,000020,480
6Sep 30, 2026 06:293,91011,854,4143,441,000020,480
7Sep 30, 2026 06:293,92011,906,8273,450,000020,480
8Sep 30, 2026 06:293,92511,947,8303,454,000020,480
9Sep 30, 2026 06:293,93112,482,4523,460,000020,480