Hello,
I have chekd your given code and I can definitely modify this code and can generate 5K result.
I can do following python coding tasks:
Implement algorithm in Python
Optimize Python code
Consulting, Python code review
Machine learning in Python
Looking forward to your positive response.
Kind regards,
Jitendra