What is the most efficient code for 10000 prime numbers?
/^1?$|^(11+?)1+$/
Tags: algorithm performance primes
Source: By Niyaz as answer to the question
This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 2.5
Related code-snippets:
- How can I get the value of in a loop?
- Anatomy of a memory leak -'memory leak'
- Function for creating color wheels.
- How can I create an object instance from a Type?
- How can we efficiently get sorted sums of a sorted list?
- How is database indexing used?
- What is the most efficient graph data structure in Python?
- "Sorting" colors by distinctiveness. Followup:
- What is the best way to calculate Big O?
- Graph serialization is a form of graph serialization.
- I am doing some project with CSharpCodeProvider Compilation Performance. The code provided is compilable from scratch. How should I modify my code?
- What's a quicker way to find duplicates conditioned by time?
- Is String.Format more efficient than StringBuilder?
- Performance Considerations for throwing Exceptions
- Find largest rectangle in cubic cm (middle rectangle problem)!