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 listFeb 10, 2025 02:43mgildermgilderScore: 249,766Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 10, 2025 02:43247,719244,361,841215,994,0001,999,0002,285,568
2Feb 10, 2025 02:43248,810243,389,537216,954,0001,999,0002,285,568
3Feb 10, 2025 02:43248,847243,057,985216,986,0001,999,0002,371,584
4Feb 10, 2025 02:43249,405242,029,526218,474,0001,002,0002,363,392
5Feb 10, 2025 02:43249,766247,096,405218,795,000999,0002,289,664
6Feb 10, 2025 02:43250,284241,917,384219,249,0001,001,0002,285,568
7Feb 10, 2025 02:43250,477245,832,836219,419,0001,001,0002,453,504
8Feb 10, 2025 02:43251,189245,377,286219,046,0002,000,0002,289,664
9Feb 10, 2025 02:43251,217247,984,976219,071,0002,000,0002,363,392