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 10, 2025 00:55zielajzielajScore: 3,465Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2025 00:553,43820,837,5962,017,0001,008,0002,510,848
2Jan 10, 2025 00:553,44421,044,1511,010,0002,021,0002,535,424
3Jan 10, 2025 00:553,44718,041,1942,022,0001,011,0002,510,848
4Jan 10, 2025 00:553,44814,869,5232,023,0001,011,0002,519,040
5Jan 10, 2025 00:553,46525,640,8372,033,0001,016,0002,510,848
6Jan 10, 2025 00:553,46821,912,1702,035,0001,017,0002,523,136
7Jan 10, 2025 00:553,48824,341,5672,046,0001,023,0002,510,848
8Jan 10, 2025 00:554,15520,470,4363,656,00002,519,040
9Jan 10, 2025 00:554,30815,719,4243,791,00002,510,848