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 listDec 17, 2024 20:37zielajzielajScore: 4,807Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2024 20:374,77319,473,5772,100,0002,100,0002,269,184
2Dec 17, 2024 20:374,80023,218,7123,168,0001,056,0002,531,328
3Dec 17, 2024 20:374,80118,969,4873,169,0001,056,0002,510,848
4Dec 17, 2024 20:374,80121,340,5003,169,0001,056,0002,531,328
5Dec 17, 2024 20:374,80724,086,0052,115,0002,115,0002,510,848
6Dec 17, 2024 20:374,83218,159,6903,189,0001,063,0002,510,848
7Dec 17, 2024 20:374,96523,270,0713,277,0001,092,0002,269,184
8Dec 17, 2024 20:375,01019,309,9534,409,00002,531,328
9Dec 17, 2024 20:375,02723,098,9864,424,00002,506,752