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 5, 2025 02:58k11ik11iScore: 135,282Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 5, 2025 02:58135,065147,914,611116,860,0001,997,0002,523,136
2Mar 5, 2025 02:58135,069148,167,624116,864,0001,997,0002,265,088
3Mar 5, 2025 02:58135,133141,466,850115,920,0002,997,0002,269,184
4Mar 5, 2025 02:58135,264147,499,181118,032,0001,000,0002,289,664
5Mar 5, 2025 02:58135,282150,219,051116,047,0003,001,0002,523,136
6Mar 5, 2025 02:58135,381149,347,345118,134,0001,001,0002,289,664
7Mar 5, 2025 02:58135,584142,771,353116,307,0003,007,0002,375,680
8Mar 5, 2025 02:58135,624140,916,562117,344,0002,005,0002,359,296
9Mar 5, 2025 02:58135,844145,367,516118,539,0001,004,0002,289,664