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 10, 2025 00:45k11ik11iScore: 92,753Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 10, 2025 00:4592,302104,241,05580,224,0001,002,0002,400,256
2Mar 10, 2025 00:4592,389107,358,37980,299,0001,003,0002,396,160
3Mar 10, 2025 00:4592,476117,395,90480,375,0001,004,0002,289,664
4Mar 10, 2025 00:4592,478114,817,91180,377,0001,004,0002,277,376
5Mar 10, 2025 00:4592,753109,415,69780,616,0001,007,0002,392,064
6Mar 10, 2025 00:4592,803108,923,91080,659,0001,008,0002,289,664
7Mar 10, 2025 00:4592,822109,986,27980,675,0001,008,0002,289,664
8Mar 10, 2025 00:4592,885112,076,13380,730,0001,009,0002,400,256
9Mar 10, 2025 00:4593,053110,488,37780,889,000998,0002,404,352