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 listMar 23, 2026 23:45Dominique GarmierDominique GarmierScore: 28,448Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 23:4528,41650,038,41923,006,0002,000,0002,445,312
2Mar 23, 2026 23:4528,44847,822,14023,032,0002,002,0002,506,752
3Mar 23, 2026 23:4528,48848,009,61624,067,0001,002,0002,437,120