Python Forum
Pairs of multiplied prime number--->N
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pairs of multiplied prime number--->N
#2
you have a call to prime_eratosthenes(lim) which has a reference to the return value in primes
because the function prime_eratosthenes has no return it defaults to returning None
Try adding return prime_list to the end of the function.
Reply


Messages In This Thread
Pairs of multiplied prime number--->N - by Frankduc - Jan-14-2022, 07:22 PM
RE: Pairs of multiplied prime number--->N - by Yoriz - Jan-14-2022, 07:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Star Pairs Trading Simulation Kiitoos 0 296 Feb-19-2024, 08:27 PM
Last Post: Kiitoos
  Prime number detector Mark17 5 932 Nov-27-2023, 12:53 PM
Last Post: deanhystad
  Sample random, unique string pairs from a list without repetitions walterwhite 1 550 Nov-19-2023, 10:07 PM
Last Post: deanhystad
  Extracting unique pairs from a data set based on another value rybina 2 2,395 Feb-12-2021, 08:36 AM
Last Post: rybina
  Is 2 a prime number? for loop & range fuction in python docs says yes, mine says no. allusernametaken 4 3,018 Nov-17-2019, 02:56 AM
Last Post: allusernametaken
  check if the number is a prime integer atlass218 5 3,056 Sep-26-2019, 07:58 AM
Last Post: atlass218
  Key value pairs assistance UtiliseIT 2 2,723 May-09-2019, 09:26 AM
Last Post: UtiliseIT
  Creating a program to look for the largest prime number of a number Wikki14 4 4,005 Sep-08-2018, 12:30 AM
Last Post: Skaperen
  Create random pairs Dennisp44 3 8,179 Jun-02-2018, 05:51 AM
Last Post: buran
  Unexpected result in simple prime number example jackhj 2 3,087 Apr-20-2018, 01:48 AM
Last Post: jackhj

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020