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 30, 2025 14:19andrei445andrei445Score: 4,058,723Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 30, 2025 14:194,041,8603,585,138,5343,227,945,000328,892,0002,277,376
2Jan 30, 2025 14:194,047,5003,587,358,8573,247,906,000313,894,0002,277,376
3Jan 30, 2025 14:194,051,8503,596,083,8493,264,744,000300,884,0002,277,376
4Jan 30, 2025 14:194,053,4383,588,249,5053,249,112,000317,913,0002,289,664
5Jan 30, 2025 14:194,058,7233,601,090,7813,252,795,000318,881,0002,277,376
6Jan 30, 2025 14:194,061,6693,602,527,7353,242,337,000331,932,0002,277,376
7Jan 30, 2025 14:194,066,1533,606,666,0903,266,371,000311,844,0002,289,664
8Jan 30, 2025 14:194,073,7173,614,838,1743,289,964,000294,907,0002,289,664
9Jan 30, 2025 14:194,076,3493,611,332,8823,263,351,000323,836,0002,277,376