The conversation between human and AI assistant.
[|Human|] Given a number, generate a sequence of prime numbers up to that number.
[|AI|] Here is a sequence of prime numbers up to the number 10:

2, 3, 5, 7.
[|Human|] 
Given a number, generate a sequence of prime numbers up to that number.