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 listJan 23, 2025 08:448QTK8QTKScore: 210,357Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 23, 2025 08:44209,972209,434,979182,778,0001,997,0002,289,664
2Jan 23, 2025 08:44210,051211,843,283182,847,0001,998,0002,269,184
3Jan 23, 2025 08:44210,192213,169,820180,970,0003,999,0002,285,568
4Jan 23, 2025 08:44210,289212,907,630184,054,0001,000,0002,527,232
5Jan 23, 2025 08:44210,357218,054,603183,113,0002,001,0002,285,568
6Jan 23, 2025 08:44210,490208,021,987183,229,0002,002,0002,289,664
7Jan 23, 2025 08:44210,835214,059,163184,533,0001,002,0002,277,376
8Jan 23, 2025 08:44211,198218,354,355182,857,0002,997,0002,265,088
9Jan 23, 2025 08:44211,578213,175,077183,186,0003,003,0002,285,568