Home > other >  Beg beg!!!!!!
Beg beg!!!!!!

Time:05-08

Create a list of length of 30, one of the elements is 1000-2000 random integers, write a program to find the list of all the prime Numbers in put these elements into a new list and output the list of
Everyone a great god, and beg you move hand

CodePudding user response:

 import random 

Def prime (l) :
Return [I for I l in the if not any ([_ for _ in range (2, 1) I if I _ %==0])]

A=random. Choices (range (1000, 2000), k=30)
Print (prime) (a)
  • Related