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 29, 2025 11:09NoSIMD_C#NoSIMD_C#Score: 199,027Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 29, 2025 11:09198,645203,180,641173,810,000998,0002,269,184
2Jan 29, 2025 11:09198,781204,192,307171,929,0002,998,0002,289,664
3Jan 29, 2025 11:09198,845199,815,427172,985,0001,999,0002,265,088
4Jan 29, 2025 11:09198,960199,979,086172,084,0003,001,0002,281,472
5Jan 29, 2025 11:09199,027202,460,935173,143,0002,001,0002,289,664
6Jan 29, 2025 11:09199,076204,497,056172,184,0003,003,0002,273,280
7Jan 29, 2025 11:09199,147197,672,228173,247,0002,002,0002,289,664
8Jan 29, 2025 11:09199,207198,791,391175,302,00002,281,472
9Jan 29, 2025 11:09199,768203,733,145173,799,0001,997,0002,289,664